OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Gadjuka on 01 Oct 2003, 11:11:13
-
I can't get 'unassignVehicle' to work!
Here's what I do:
I order a unit to enter a vehicle in the usual way (F2 -> klick on vehicle), the unit enters the vehicle. At this point I've got an EventHandler "Get in" on the vehicle that runs a script that is supposed to make the unit exit the vehicle and make him stay out.
I do this with 'unit action ["eject", vehicle unit]' and 'unassignVehicle unit'. The unit exits the vehicle. The problem is that he seems to still be assigned to the vehicle, because when I unjoin him (I join grpNull) he tries to get in again.
Is there something I've missed?
(btw it's a MP mission)
-
There are two nice commands to solve yout prob:
_array/[_unit] orderGetin false
and
_unit allowgetin false