unassignVehicle: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 34: Line 34:
Old Notes (temporary):
Old Notes (temporary):


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
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.
[[crew]] vehiclename [[allowGetIn]] [[false]]
 
To prevent this happening also use [[allowGetIn]] as in the example below:
 
{unassignVehicle _x} [[forEach]] [[crew]] vehiclename; [[crew]] vehiclename [[allowGetIn]] [[false]]


[[Category:Scripting Commands|UNASSIGNVEHICLE]]
[[Category:Scripting Commands|UNASSIGNVEHICLE]]

Revision as of 16:01, 2 August 2006

Hover & click on the images for description

Description

Description:
Unit is unassigned from the vehicle. If he is currently in, group leader will issue order to disembark. Examples: unassignVehicle player will make the player disembark {unassignVehicle _x} forEach crew vehiclename will make all the occupants of a vehicle disembark
Groups:
Uncategorised

Syntax

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

Examples

Examples:
Example needed

Additional Information

See also:
See also needed

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

Bottom Section

Old Notes (temporary):

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