BIS fnc vehicleRoles: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Page filling) |
m (template:command argument fix) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Returns vehicle roles. |= | | Returns vehicle roles. |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| vehicle call [[BIS_fnc_vehicleRoles]] |= | | vehicle call [[BIS_fnc_vehicleRoles]] |SYNTAX= | ||
|p1= [[Object]] or [[String]] - vehicle itself or a classname |= | |p1= [[Object]] or [[String]] - vehicle itself or a classname |PARAMETER1= | ||
| [[Array]] - to format <nowiki>[</nowiki>[role, path], [role, path], …] like this: | | [[Array]] - to format <nowiki>[</nowiki>[role, path], [role, path], …] like this: | ||
Line 22: | Line 22: | ||
["Cargo",[1]], | ["Cargo",[1]], | ||
(…) | (…) | ||
]</code> |= | ]</code> |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>[[cursorObject]] [[call]] [[BIS_fnc_vehicleRoles]];</code> |= | |x1= <code>[[cursorObject]] [[call]] [[BIS_fnc_vehicleRoles]];</code> |EXAMPLE1= | ||
|x2= <code>"B_MBT_01_cannon_F" [[call]] [[BIS_fnc_vehicleRoles]];</code> |= | |x2= <code>"B_MBT_01_cannon_F" [[call]] [[BIS_fnc_vehicleRoles]];</code> |EXAMPLE2= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[BIS_fnc_moveIn]], [[assignedVehicleRole]], [[weaponsTurret]] |= | | [[BIS_fnc_moveIn]], [[assignedVehicleRole]], [[weaponsTurret]] |SEEALSO= | ||
}} | }} | ||
Revision as of 14:34, 7 April 2019
Description
- Description:
- Returns vehicle roles.
- Execution:
- call
- Groups:
- Uncategorised
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