leaveVehicle: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) m (some quirks) |
m (template:command argument fix) |
||
Line 19: | Line 19: | ||
| group '''leaveVehicle''' vehicle |= Syntax | | group '''leaveVehicle''' vehicle |= Syntax | ||
|p1= group: [[Group]] or [[Object]], in which case, object's [[Group]] is used |= | |p1= group: [[Group]] or [[Object]], in which case, object's [[Group]] is used |PARAMETER1= | ||
|p2= vehicle: [[Object]] |= | |p2= vehicle: [[Object]] |PARAMETER2= | ||
|p3= |= | |p3= |PARAMETER3= | ||
| [[Nothing]] |= | | [[Nothing]] |RETURNVALUE= | ||
|x1= <code>_unit [[leaveVehicle]] _vehicle</code>|= | |x1= <code>_unit [[leaveVehicle]] _vehicle</code>|EXAMPLE1= | ||
|x2= <code>_grp [[leaveVehicle]] _vehicle</code>|= | |x2= <code>_grp [[leaveVehicle]] _vehicle</code>|EXAMPLE2= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[addVehicle]], [[assignAsCargo]], [[assignAsCommander]], [[assignAsDriver]], [[assignAsGunner]], [[assignedVehicle]], [[unassignVehicle]], [[doGetOut]], [[commandGetOut]], [[createVehicleCrew]] |= | | [[addVehicle]], [[assignAsCargo]], [[assignAsCommander]], [[assignAsDriver]], [[assignAsGunner]], [[assignedVehicle]], [[unassignVehicle]], [[doGetOut]], [[commandGetOut]], [[createVehicleCrew]] |SEEALSO= | ||
| |= | | |MPBEHAVIOUR= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
}} | }} |
Revision as of 10:34, 7 April 2019
Description
- Description:
- Ceases the using of the vehicle by a group and unassigns vehicle from the group. If the argument is a single unit, the vehicle will be unassigned from unit's group. After vehicle is unassigned from the group, each individual crew member then unassigned from the vehicle.
In short the command could be hypothetically presented as:
leaveVehicle = un-addVehicle + unassignVehicle forEach crew
However, to make it more reliable, it is best to move unit out of the vehicle manually with moveOut command and force unassign the vehicle with unassignVehicle - Groups:
- Uncategorised
Syntax
- Syntax:
- group leaveVehicle vehicle
- Parameters:
- group: Group or Object, in which case, object's Group is used
- vehicle: Object
- Return Value:
- Nothing
Examples
- Example 1:
_unit leaveVehicle _vehicle
- Example 2:
_grp leaveVehicle _vehicle
Additional Information
- See also:
- addVehicleassignAsCargoassignAsCommanderassignAsDriverassignAsGunnerassignedVehicleunassignVehicledoGetOutcommandGetOutcreateVehicleCrew
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
- In ArmA 3 this command will not force a player to exit from a vehicle. It will unassign vehicle role for this player. AI crew however will also disembark.
Bottom Section
Categories:
- Scripting Commands
- Introduced with Arma 2 version 1.00
- Arma 2: New Scripting Commands
- Arma 2: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands: Local Effect
- ArmA 2: New Scripting Commands List
- Scripting Commands ArmA2
- Scripting Commands Arma 3
- Scripting Commands Take On Helicopters
- Command Group: Unit Control
- Command Group: Vehicle Assignment