unassignVehicle: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Unit is unassigned from the vehicle.
| [[Object#Person|Person]] is unassigned from the vehicle.


If he is currently in, group leader will issue order to disembark. |= Description
If he is currently in, group leader will issue order to disembark. |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''unassignVehicle''' unit |= Syntax
| '''unassignVehicle''' [[Object#Person|Person]]|= Syntax


|p1= unit: [[Object]] |= Parameter 1
|p1= [[Object#Person|Person]]: [[Object]] |= Parameter 1


| [[Nothing]] |= Return value
| [[Nothing]] |= Return value
Line 21: Line 21:
|x1= <code>unassignVehicle [[player]]</code> |= Example 1  
|x1= <code>unassignVehicle [[player]]</code> |= Example 1  
   
   
|x2= <code>{unassignVehicle _x} [[forEach]] [[crew]] vehiclename</code> Will make all the occupants of a vehicle disembark |= Example 2  
|x2= <code>{unassignVehicle _x} [[forEach]] [[crew]] _vehiclename</code> Will make all the occupants of a vehicle disembark |= Example 2  
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 01:45, 1 September 2007

Hover & click on the images for description

Description

Description:
Person is unassigned from the vehicle. If he is currently in, group leader will issue order to disembark.
Groups:
Uncategorised

Syntax

Syntax:
unassignVehicle Person
Parameters:
Person: Object
Return Value:
Nothing

Examples

Example 1:
unassignVehicle player
Example 2:
{unassignVehicle _x} forEach crew _vehiclename Will make all the occupants of a vehicle disembark

Additional Information

See also:
assignAsCargoassignAsCommanderassignAsDriverassignAsGunner

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 4, 2006 - 12:05
hardrock
Notes from before the conversion: Even though: {unassignVehicle _x} forEach crew vehiclename will make all the occupants of a vehicle disembark, if they are the original crew of the vehicle then they will just get back in again. To prevent this happening also use allowGetIn as in the example below: {unassignVehicle _x} forEach crew vehiclename; crew vehiclename allowGetIn false

Bottom Section