unassignVehicle: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
[[Category:Scripting Commands|UNASSIGNVEHICLE]] | [[Category:Scripting Commands|UNASSIGNVEHICLE]] | ||
[[Category:Scripting Commands OFP 1. | [[Category:Scripting Commands OFP 1.96|UNASSIGNVEHICLE]] | ||
[[Category:Scripting Commands OFP 1.46|UNASSIGNVEHICLE]] | [[Category:Scripting Commands OFP 1.46|UNASSIGNVEHICLE]] | ||
[[Category:Scripting Commands ArmA|UNASSIGNVEHICLE]] | [[Category:Scripting Commands ArmA|UNASSIGNVEHICLE]] |
Revision as of 19:50, 1 June 2006
unassignVehicle unit
Operand types:
unit: Object
Type of returned value:
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
Comments:
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