BIS fnc vehicleRoles: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3>" to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects? in MP|Multiplayer Effects(...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function| arma3|1.00|gr1 = Vehicles| Returns vehicle roles.| vehicle call [[BIS_fnc_vehicleRoles]]|p1= [[Object]] or [[String]] - vehicle itself or a classname| [[Array]] - to format [<nowiki/>[role, path], [role, path], …] like this: | ||
| arma3 | |||
|1.00 | |||
|gr1 = Vehicles | |||
| Returns vehicle roles. | |||
| vehicle call [[BIS_fnc_vehicleRoles]] | |||
|p1= [[Object]] or [[String]] - vehicle itself or a classname | |||
| [[Array]] - to format [<nowiki/>[role, path], [role, path], …] like this: | |||
<code>[ | <code>[ | ||
["Driver",[]], | ["Driver",[]], | ||
Line 21: | Line 7: | ||
["Cargo",[1]], | ["Cargo",[1]], | ||
(…) | (…) | ||
]</code> | ]</code>|x1= <code>[[cursorObject]] [[call]] [[BIS_fnc_vehicleRoles]];</code>|x2= <code>"B_MBT_01_cannon_F" [[call]] [[BIS_fnc_vehicleRoles]];</code>| [[BIS_fnc_moveIn]], [[assignedVehicleRole]], [[weaponsTurret]] |SEEALSO= | ||
|x1= <code>[[cursorObject]] [[call]] [[BIS_fnc_vehicleRoles]];</code> | |||
|x2= <code>"B_MBT_01_cannon_F" [[call]] [[BIS_fnc_vehicleRoles]];</code> | |||
| [[BIS_fnc_moveIn]], [[assignedVehicleRole]], [[weaponsTurret]] |SEEALSO= | |||
}} | }} | ||
Revision as of 09:51, 18 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