assignedVehicleRole: Difference between revisions
Jump to navigation
Jump to search
m (Added SEEALSO) |
(Added another example in combo with weaponsTurret) |
||
Line 30: | Line 30: | ||
|x1= <pre>_RoleArray=assignedVehicleRole player</pre> |= Example 1 | |x1= <pre>_RoleArray=assignedVehicleRole player</pre> |= Example 1 | ||
|x2= <pre>_weaponsForAnyTurrentPosition = (vehicle player) weaponsTurret ((assignedVehicleRole player) select 1)</pre> |= Example 2 | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 07:45, 11 March 2011
Description
- Description:
- Return the role a unit is assigned to within its assigned vehicle.
The array which is returned contains:
- [] - Not assigned to any vehicle
- ["Driver"] - Assigned as driver
- ["Cargo"] - Assigned as cargo
- ["Turret", [turret path]] - Assigned to a turret
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
_RoleArray=assignedVehicleRole player
- Example 2:
_weaponsForAnyTurrentPosition = (vehicle player) weaponsTurret ((assignedVehicleRole player) select 1)
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