assignedVehicleRole: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| arma1 \|1.([0-9]{2}) \|([^g]|g[^a])" to "| arma1 |1.$1 |game2= arma2 |version2= 1.00 |game3= arma2oa |version3= 1.50 |game4= tkoh |version4= 1.00 |game5= arma3 |version5= 0.50 |$2") |
Lou Montana (talk | contribs) m (Text replacement - " \| *([^=\| ]+) * \|p1=" to " |s1= $1 |p1=") |
||
Line 35: | Line 35: | ||
* A player can still get into the vehicle position already assigned if not already taken, or switch seats with AI (if [[leader]] or [[effectiveCommander]] for those AI). | * A player can still get into the vehicle position already assigned if not already taken, or switch seats with AI (if [[leader]] or [[effectiveCommander]] for those AI). | ||
| '''assignedVehicleRole''' unitName | |s1= '''assignedVehicleRole''' unitName | ||
|p1= unitName: [[Object]] | |p1= unitName: [[Object]] |
Revision as of 22:44, 12 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:
- assignedVehicleRole unitName
- 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.