Difference between revisions of "cmf common fnc setCallsign"

From cluster wiki
Jump to navigation Jump to search
(Created page with "{{CMF Function |game1=arma3 |version1=0.50 |game2=cmf3 |version2=2.1.0 |descr=Sets squad callsign and optionally type and level. |exec=Call |cmp=common |s1=[Group, Call...")
 
 
(3 intermediate revisions by the same user not shown)
Line 7: Line 7:
|version2=2.1.0
|version2=2.1.0


|descr=Sets squad callsign and optionally type and level.  
|descr=Sets squad callsign and optionally the type and ORBAT size.


|exec=Call
|exec=Call
Line 26: Line 26:


|x1= {{code|lang=scilab|[_myGroup, "A1", "ARMOR", "PLT"] call cmf_common_fnc_setCallsign}}
|x1= {{code|lang=scilab|[_myGroup, "A1", "ARMOR", "PLT"] call cmf_common_fnc_setCallsign}}
|seealso= [[cmf_common_fnc_getConfigParam]] [[cmf_common_fnc_isRole]] [[cmf_common_fnc_setRole]]


|var1= {{!}} GLOBAL {{!}}{{!}} groupnamespace {{!}}{{!}} cmf_common_sqd_callsign {{!}}{{!}} a hashmap that can be used to overwrite EMF config settings or to define new ones in missionTime
|var1= {{!}} GLOBAL {{!}}{{!}} groupnamespace {{!}}{{!}} cmf_common_sqd_callsign {{!}}{{!}} a hashmap that can be used to overwrite EMF config settings or to define new ones in missionTime
Line 31: Line 33:
|var3= {{!}} GLOBAL {{!}}{{!}} groupnamespace {{!}}{{!}} cmf_common_sqd_size {{!}}{{!}} a string variable containing the attached group's group type (INF, MECH, ARMOR etc.)
|var3= {{!}} GLOBAL {{!}}{{!}} groupnamespace {{!}}{{!}} cmf_common_sqd_size {{!}}{{!}} a string variable containing the attached group's group type (INF, MECH, ARMOR etc.)
|var4= {{!}} GLOBAL {{!}}{{!}} unitNamespace {{!}}{{!}} cmf_common_group {{!}}{{!}} a string variable containing the attached group's group size (SQD, PLT, COY etc.)
|var4= {{!}} GLOBAL {{!}}{{!}} unitNamespace {{!}}{{!}} cmf_common_group {{!}}{{!}} a string variable containing the attached group's group size (SQD, PLT, COY etc.)
|event1= {{!}} UNITLOCAL {{!}}{{!}} cmf_common_onGroupCallsignChanged {{!}}{{!}} [group, callsign, type, level] {{!}}{{!}} Is raised when a group's callsign is set
}}
}}

Latest revision as of 21:35, 17 December 2022


Hover & click on the images for description
Description
Description:
Sets squad callsign and optionally the type and ORBAT size.
Execution:
Call
Groups:
CMF3: common
Syntax
Syntax:
[Group, Callsign, Type, Level] call cmf_common_fnc_setCallsign
Parameters:
Group: Group
Callsign: String
Type: String - (Optional, default "INF")
Level: String - (Optional, default "FT")
Return Value:
None
Examples
Example 1:
[_myGroup, "A1", "ARMOR", "PLT"] call cmf_common_fnc_setCallsign
Additional Information
See also:
cmf_common_fnc_getConfigParam cmf_common_fnc_isRole cmf_common_fnc_setRole
Internal Variables
Locality Namespace Name Description
GLOBAL groupnamespace cmf_common_sqd_callsign a hashmap that can be used to overwrite EMF config settings or to define new ones in missionTime
GLOBAL groupnamespace cmf_common_sqd_type a string variable containing the attached group's name (ASL, A1, A2 etc.)
GLOBAL groupnamespace cmf_common_sqd_size a string variable containing the attached group's group type (INF, MECH, ARMOR etc.)
GLOBAL unitNamespace cmf_common_group a string variable containing the attached group's group size (SQD, PLT, COY etc.)
Events
Locality Name Variables Description
UNITLOCAL cmf_common_onGroupCallsignChanged [group, callsign, type, level] Is raised when a group's callsign is set
Notes