unassignVehicle: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 1: Line 1:
[[Category:Scripting Commands|UNASSIGNVEHICLE]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|UNASSIGNVEHICLE]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|UNASSIGNVEHICLE]]
[[Category:Scripting Commands ArmA|UNASSIGNVEHICLE]]


| ofp |= Game name


<h2 style="color:#000066">'''unassignVehicle ''unit'''''</h2>
|1.00|= Game version
____________________________________________________________________________________________


| 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 |= Description
____________________________________________________________________________________________


'''Operand types:'''
| '''unassignVehicle''' unit |= Syntax


'''unit:''' [[Object]]
|p1= unit: [[Object]] |= Parameter 1


'''Type of returned value:'''
| [[Nothing]] |= Return value
____________________________________________________________________________________________


[[Nothing]]
|  |= See also


'''Description:'''
}}


Unit is unassigned from the vehicle.
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


If he is currently in, group leader will issue order to disembark.
<!-- Note Section END -->
</dl>


<h3 style="display:none">Bottom Section</h3>
Old Notes (temporary):


'''Examples:'''
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]]


'''unassignVehicle''' [[player]]<br>
[[Category:Scripting Commands|UNASSIGNVEHICLE]]
will make the player disembark
[[Category:Scripting Commands OFP 1.96|UNASSIGNVEHICLE]]
 
[[Category:Scripting Commands OFP 1.46|UNASSIGNVEHICLE]]
{'''unassignVehicle''' _x} [[forEach]] [[crew]] ''vehiclename''<br>
[[Category:Scripting Commands ArmA|UNASSIGNVEHICLE]]
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''<br>
[[crew]] ''vehiclename'' [[allowGetIn]] [[false]]

Revision as of 22:57, 1 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