Difference between revisions of "cmf 3den fnc unitConstructor"
Jump to navigation
Jump to search
(Created page with "{{CMF Function |game1=arma3 |version1=1.56 |game2=cmf3 |version2=2.1.0 |descr=This function is mostly a lookup table for Cluster ORBAT structured units. If you are looking...") |
|||
Line 8: | Line 8: | ||
|descr=This function is mostly a lookup table for Cluster ORBAT structured units. If you are looking to modify the ORBAT this is the file to edit. | |descr=This function is mostly a lookup table for Cluster ORBAT structured units. If you are looking to modify the ORBAT this is the file to edit. | ||
{{CMF Feature|IMPORTANT|This is an internal function. This means that the function is called by another function and should not be called manually.}} | |||
|exec=Call | |exec=Call |
Revision as of 16:56, 17 December 2022
Description
- Description:
- This function is mostly a lookup table for Cluster ORBAT structured units. If you are looking to modify the ORBAT this is the file to edit.
- Execution:
- Call
- Groups:
- CMF3: 3den
Syntax
- Syntax:
- [unitIdentifier] call cmf_3den_fnc_unitConstructor
- Parameters:
- unitIdentifier: String - The unit to lookup
- Return Value:
- Unit Array:
- Group Name: String - The group name as displayed ingame
- Lobby Group Name: String - The group name as displayed in the lobby
- Group Type: String - The group type, must be a value defined in CMF_ORBAT in the
- Group Size: String - The group size, must be a value defined in CMF_ORBAT in the
- Group Position Offset: Number - The positional offset of the group from the center of the camera
- Group Units Array:
- Unit Array:
- Unit classname: String - The classname of the unit to spawn
- Unit Name: String - The name to display in the lobby
- Unit Role: String - The unit's CMF Role
- Unit leader: Boolean - The unit's leadership status in the group (if true unit will be group leader)
- Unit X position offset: Number - The X positional offset of the group from the center of the camera
- Unit Y position offset: Number - The Y positional offset of the group from the center of the camera
- Unit Array:
Examples
- Example 1:
["SQUAD"] call cmf_3den_fnc_unitConstructor;
Additional Information
- See also:
- See also needed
Internal Variables
- No internal variables
Events
- No events
Notes