Difference between revisions of "cmf common fnc setCallsign"

From cluster wiki
Jump to navigation Jump to search
 
Line 34: Line 34:
|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= {{!}} LOCAL {{!}}{{!}} cmf_common_onGroupCallsignChanged {{!}}{{!}} [group, callsign, type, level] {{!}}{{!}} Is raised when a group's callsign is set
|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