BIS fnc vehicleRoles: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|gr([0-9]+) = " to "|gr$1= ") |
Lou Montana (talk | contribs) m (Text replacement - " \| *(x[0-9]|p[0-9]{1,2}|descr|game[0-9]|version[0-9]|s[0-9]|exec|r[0-9]|arg|eff|branch|serverExec|gr[0-9]|mp|pr|seealso) +=" to " |$1=") |
||
Line 2: | Line 2: | ||
|game1= arma3 | |game1= arma3 | ||
|version1 = 1.00 | |version1= 1.00 | ||
|gr1= Vehicles | |gr1= Vehicles |
Revision as of 23:38, 10 June 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