BIS fnc vehicleRoles: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
m (Fix SQF)
 
(24 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{RV|type=function
|game1= arma3
|version1= 1.00


{{Function|= Comments
|gr1= Vehicles
____________________________________________________________________________________________


| arma3 |= Game name
|descr= Returns vehicle roles.


|1.00|= Game version
|s1= vehicle call [[BIS_fnc_vehicleRoles]]
____________________________________________________________________________________________


| <pre>/*
|p1= [[Object]] or [[String]] - vehicle itself or a classname


Description:
|r1= [[Array]] - to format [<nowiki/>[role, path], [role, path], …] like this:
Returns vehicle roles
<sqf>[
["Driver",[]],
["Turret",[0]],
["Turret",[0,0]],
["Cargo",[0]],
["Cargo",[1]],
// ...
]</sqf>


Parameter(s):
|x1= <sqf>cursorObject call BIS_fnc_vehicleRoles;</sqf>
0: OBJECT or STRING


Returns:
|x2= <sqf>"B_MBT_01_cannon_F" call BIS_fnc_vehicleRoles;</sqf>
ARRAY of ARRAYS in format [role,index],e.g. [["Driver",[]],["Turret",[0,1]],["Cargo",[0]]]
*/
 
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
____________________________________________________________________________________________
 
| <!-- [] call [[BIS_fnc_vehicleRoles]]; --> |= Syntax
 
|p1= |= Parameter 1
 
| |= Return value
____________________________________________________________________________________________
 
|x1= <code></code> |=
____________________________________________________________________________________________
 
| |= See also


|seealso= [[BIS_fnc_moveIn]] [[assignedVehicleRole]] [[weaponsTurret]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Vehicles|{{uc:vehicleRoles}}]]
[[Category:Functions|{{uc:vehicleRoles}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:vehicleRoles}}]]

Latest revision as of 16:58, 1 November 2022

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_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