cmf_3den_fnc_unitConstructor

From cluster wiki
Revision as of 20:09, 7 November 2022 by Eric (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Hover & click on the images for description
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
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