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...") |
|||
(3 intermediate revisions by the same user not shown) | |||
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 | ||
Line 20: | Line 21: | ||
* Group Name: [https://community.bistudio.com/wiki/String String] - The group name as displayed ingame | * Group Name: [https://community.bistudio.com/wiki/String String] - The group name as displayed ingame | ||
* Lobby Group Name: [https://community.bistudio.com/wiki/String String] - The group name as displayed in the lobby | * Lobby Group Name: [https://community.bistudio.com/wiki/String String] - The group name as displayed in the lobby | ||
* Group Type: [https://community.bistudio.com/wiki/String String] - The group type, must be a value defined in CMF_ORBAT in | * Group Type: [https://community.bistudio.com/wiki/String String] - The group type, must be a value defined in CMF_ORBAT in [[:Category:CMF3: Config|cmf_config.hpp]] | ||
* Group Size: [https://community.bistudio.com/wiki/String String] - The group size, must be a value defined in CMF_ORBAT in | * Group Size: [https://community.bistudio.com/wiki/String String] - The group size, must be a value defined in CMF_ORBAT in [[:Category:CMF3: Config|cmf_config.hpp]] | ||
* Group Position Offset: [https://community.bistudio.com/wiki/Number Number] - The positional offset of the group from the center of the camera | * Group Position Offset: [https://community.bistudio.com/wiki/Number Number] - The positional offset of the group from the center of the camera | ||
* Group Units Array: | * Group Units Array: | ||
Line 33: | Line 34: | ||
|x1= {{code|lang=scilab|["SQUAD"] call cmf_3den_fnc_unitConstructor;}} | |x1= {{code|lang=scilab|["SQUAD"] call cmf_3den_fnc_unitConstructor;}} | ||
|seealso= [[cmf_3den_fnc_addRadioRack]] [[cmf_3den_fnc_iconViewer]] [[cmf_3den_fnc_init]] [[cmf_3den_fnc_unitSpawner]] | |||
}} | }} |
Latest revision as of 21:29, 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 cmf_config.hpp
- Group Size: String - The group size, must be a value defined in CMF_ORBAT in cmf_config.hpp
- 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:
- cmf_3den_fnc_addRadioRack cmf_3den_fnc_iconViewer cmf_3den_fnc_init cmf_3den_fnc_unitSpawner
Internal Variables
- No internal variables
Events
- No events
Notes