assignedVehicleRole: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "{{uc:{{PAGENAME}}}} " to "") |
Lou Montana (talk | contribs) m (Text replacement - " " to " ") |
||
Line 33: | Line 33: | ||
* ["cargo"] (or ["cargo", [turret path]] since Arma 3 1.31.127272) - Assigned as 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 | ||
|x1= <code>_RoleArray = [[assignedVehicleRole]] [[player]];</code> | |x1= <code>_RoleArray = [[assignedVehicleRole]] [[player]];</code> | ||
|x2= Get weapons available to player at player occupied turret:<code>_weaponsTurret = [[vehicle]] [[player]] [[weaponsTurret]] ([[assignedVehicleRole]] [[player]] [[select]] 1);</code> | |x2= Get weapons available to player at player occupied turret:<code>_weaponsTurret = [[vehicle]] [[player]] [[weaponsTurret]] ([[assignedVehicleRole]] [[player]] [[select]] 1);</code> |
Revision as of 19:55, 10 June 2021
Description
- Description:
- Description needed
- Multiplayer:
- On a client the command will return empty arrays for every unit that is not local. On the server the command correctly returns the role, regardless of the units locality.
- Groups:
- Object Manipulation
Syntax
- Syntax:
- Syntax needed
- Parameters:
- unitName: Object
- Return Value:
- Return value needed
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:
- addVehicleassignedVehicleunassignVehicleleaveVehicleassignAsCargoassignAsCommanderassignAsDriverassignAsGunnerassignAsTurretcrewfullCrew
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
- Posted on August 31, 2013
- Killzone_Kid
- When player is in a group of AIs and is not the leader, assignedVehicleRole of the player could be unpredictable and absolutely not related to the position player occupies. In short, forget about this command for the player, it is unreliable and has been broken too many times in the past.