BIS fnc vehicleRoles: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|seealso= ([^ ]+)(\]\]|\}\}), *(\[\[|\{\{)" to "|seealso= $1$2 $3") |
Lou Montana (talk | contribs) m (Text replacement - "<code>(\[?[^\[]+\]?) *(\[\[)?(call|spawn)(\]\])? *(\[\[)?(BI(N|S)_fnc_[a-zA-Z0-9_]+)(\]\])?;?<\/code>" to "<sqf>$1 $3 $6;</sqf>") |
||
Line 23: | Line 23: | ||
|x1= <sqf>cursorObject call BIS_fnc_vehicleRoles;</sqf> | |x1= <sqf>cursorObject call BIS_fnc_vehicleRoles;</sqf> | ||
|x2= < | |x2= <sqf>"B_MBT_01_cannon_F" call BIS_fnc_vehicleRoles;</sqf> | ||
|seealso= [[BIS_fnc_moveIn]] [[assignedVehicleRole]] [[weaponsTurret]] | |seealso= [[BIS_fnc_moveIn]] [[assignedVehicleRole]] [[weaponsTurret]] | ||
}} | }} |
Revision as of 13:23, 1 July 2022
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:
- Example 2:
Additional Information
- See also:
- BIS_fnc_moveIn assignedVehicleRole weaponsTurret
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