BIS fnc vehicleRoles: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " " to " ")
m (fixed formatting)
Line 1: Line 1:
{{RV|type=function
{{RV|type=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:
|game1= arma3
 
|version1 = 1.00
 
|gr1 = Vehicles
 
|descr= Returns vehicle roles.
 
|s1= vehicle call [[BIS_fnc_vehicleRoles]]
 
|p1= [[Object]] or [[String]] - vehicle itself or a classname
 
|r1= [[Array]] - to format [<nowiki/>[role, path], [role, path], …] like this:
<code>[
<code>[
["Driver",[]],
["Driver",[]],
Line 8: Line 20:
["Cargo",[1]],
["Cargo",[1]],
(…)
(…)
]</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]]
]</code>
}}
 
|x1= <code>[[cursorObject]] [[call]] [[BIS_fnc_vehicleRoles]];</code>


|x2= <code>"B_MBT_01_cannon_F" [[call]] [[BIS_fnc_vehicleRoles]];</code>


[[Category:Functions|{{uc:vehicleRoles}}]]
|seealso= [[BIS_fnc_moveIn]], [[assignedVehicleRole]], [[weaponsTurret]]
[[Category:{{Name|arma3}}: Functions|{{uc:vehicleRoles}}]]
}}

Revision as of 02:24, 2 February 2021

Hover & click on the images for description

Description

Description:
Returns vehicle roles.
Execution:
call
Groups:
Vehicles

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

See also:
BIS_fnc_moveInassignedVehicleRoleweaponsTurret

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