BIS fnc vehicleRoles: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Function|Comments= | {{Function|Comments= | ||
| arma3 |Game name= | | arma3 |Game name= | ||
Line 7: | Line 6: | ||
|gr1 = Vehicles |GROUP1= | |gr1 = Vehicles |GROUP1= | ||
| Returns vehicle roles. |DESCRIPTION= | | Returns vehicle roles. |DESCRIPTION= | ||
| vehicle call [[BIS_fnc_vehicleRoles]] |SYNTAX= | | vehicle call [[BIS_fnc_vehicleRoles]] |SYNTAX= | ||
Line 25: | Line 22: | ||
(…) | (…) | ||
]</code> |RETURNVALUE= | ]</code> |RETURNVALUE= | ||
|x1= <code>[[cursorObject]] [[call]] [[BIS_fnc_vehicleRoles]];</code> |EXAMPLE1= | |x1= <code>[[cursorObject]] [[call]] [[BIS_fnc_vehicleRoles]];</code> |EXAMPLE1= | ||
|x2= <code>"B_MBT_01_cannon_F" [[call]] [[BIS_fnc_vehicleRoles]];</code> |EXAMPLE2= | |x2= <code>"B_MBT_01_cannon_F" [[call]] [[BIS_fnc_vehicleRoles]];</code> |EXAMPLE2= | ||
| [[BIS_fnc_moveIn]], [[assignedVehicleRole]], [[weaponsTurret]] |SEEALSO= | | [[BIS_fnc_moveIn]], [[assignedVehicleRole]], [[weaponsTurret]] |SEEALSO= |
Revision as of 00:08, 17 January 2021
Description
Syntax
- Syntax:
- vehicle call BIS_fnc_vehicleRoles
- Parameters:
- Object or String - vehicle itself or a classname
- Return Value:
- Array - to format [[role, path], [role, path], …] like this:
[ ["Driver",[]], ["Turret",[0]], ["Turret",[0,0]], ["Cargo",[0]], ["Cargo",[1]], (…) ]
Examples
- Example 1:
cursorObject call BIS_fnc_vehicleRoles;
- Example 2:
"B_MBT_01_cannon_F" call BIS_fnc_vehicleRoles;
Additional Information
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note