Search the Community
Showing results for tags 'setGroupId'.
Found 3 results
-
Hi all, i have a question about coloured groupid's, i want to have color for the group id in the teamswitch. could someone help me on that ? here is what i'm trying to do screenshot of the thing image thank you for your help
-
My whole life I've been wondering how to use custom callsigns for my squads and my side HQ in OFP. I just came back to game editing to instantly figure it out by opening and analyzing BIS' CONFIG.BIN. I created my own addon where I defined various callsigns. Here's how to do it: Make a config.cpp. Type in: class CfgPatches { class MYCustomGroups { units[] = {}; weapons[] = {}; requiredVersion = 1.28; }; }; class CfgHQIdentities { class EAGLE { name = "EAGLE"; speaker = John; pitch = 1.10; }; class EAGLE_BASE { name = "EAGLE_BASE"; speaker = John; pitch = 1.10; }; class NOGOVA { name = "NOGOVA"; speaker = John; pitch = 1.10; }; class GERONIMO { name = "GERONIMO"; speaker = John; pitch = 1.10; }; class TASMANIAN_DEVIL { name = "TASMANIAN_DEVIL"; speaker = John; pitch = 1.10; }; }; class CfgWorlds { class GroupNameList { letters[] = {"Roman","Nogova","Geronimo","Tasmanian"}; }; class GroupNames { class Roman { name = "Roman"; image = ""; }; class Nogova { name = "Nogova"; image = ""; }; class Geronimo { name = "Geronimo"; image = ""; }; class Tasmanian { name = "Tasmanian"; image = ""; }; }; class GroupColorList { colors[] = {"GroupCustom1","GroupCustom2"}; }; class GroupColors { class GroupCustom1 { name = "Custom1"; image = ""; }; class GroupColors { class GroupCustom2 { name = "Custom2"; image = ""; }; }; }; In CfgHQIdentities we define our custom HQ callsigns. For example instead of using: [east, "base"] sideChat "some text" I can now use my custom callsign: [east, "EAGLE_BASE"] sideChat "some text" You will see EAGLE_BASE displayed instead of PAPA_PEAR. As for the custom group callsigns we first define a list of them and then we define each one. player setGroupId ["Tasmanian", "GroupColor0"]; player sideChat "some text" will display Tamsnian (Playername): some text instead of the usual Alpha Black 1 (Playername): some text You can also add custom colours, though you are not limited to putting a color inside the string, you can put anything you want in it. This is done in the GroupColorList and GroupColors sections. Finally put your config.cpp inside a folder, name the folder the same way you named your class after CfgPatches, turn it into a .pbo file, put it in the addons folder and you're good to go and call your own defined callsigns.
- 2 replies
-
- 2
-
- setgroupid
- sidechat
-
(and 1 more)
Tagged with:
-
[SOLVED] how to set group name with setGroupID?
sarogahtyp posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I can get a groups name with _name = groupId (group _unit); what I cant get working is setting this name with setGroupID. I tried with this line group _unit setGroupId ["%GroupNames", _name]; maybe someone could tell me the correct way to first get the groups name and then after deleting and spawning that group again how to set the name to the new created group.- 3 replies
-
- setGroupId
- setGroupIdGlobal
-
(and 1 more)
Tagged with: