assignedVehicleRole: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (turret path for cargo) |
Killzone Kid (talk | contribs) mNo edit summary |
||
Line 14: | Line 14: | ||
* [] - Not assigned to any vehicle | * [] - Not assigned to any vehicle | ||
* ["Driver"] - Assigned as driver | * ["Driver"] - Assigned as driver | ||
* ["Cargo"] | * ["Cargo"] (or ["Cargo", [turret path]] since Arma 3 1.31.127272) - Assigned as cargo | ||
* ["Turret", [turret path]] - Assigned to a turret | * ["Turret", [turret path]] - Assigned to a turret | ||
Revision as of 10:47, 23 September 2014
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"] (or ["Cargo", [turret path]] since Arma 3 1.31.127272) - Assigned as cargo
- ["Turret", [turret path]] - Assigned to a turret
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
_RoleArray = assignedVehicleRole player;
- Example 2:
- Get weapons available to player at player occupied turret:
_weaponsTurret = vehicle player weaponsTurret (assignedVehicleRole player select 1);
Additional Information
- See also:
- addVehicleassignedVehicleunassignVehicleweaponsTurretassignAsCargoassignAsCommanderassignAsDriverassignAsGunnerassignAsTurret
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
Notes
- Posted on August 31, 2013
- Killzone_Kid
- When unit with unassigned vehicle role enters a vehicle, it gets assigned vehicle role automatically. The unit then will hold on to its assigned role after exiting the vehicle.
Bottom Section
Categories:
- Scripting Commands
- Introduced with Arma version 1.05
- Arma: New Scripting Commands
- Arma: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands ArmA
- Command Group: Object Information
- Command Group: Vehicle Assignment
- Scripting Commands ArmA2
- Scripting Commands Arma 3
- Scripting Commands Take On Helicopters