Home   Help Search Login Register  

Author Topic: unassignvehicle - They doesn't care!  (Read 477 times)

0 Members and 1 Guest are viewing this topic.

Offline Gadjuka

  • Members
  • *
  • Programmer
    • Operation Flashpoint: Commander
unassignvehicle - They doesn't care!
« 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)
Currently working on Operation Flashpoint: Commander.
Website: http://www.nordserver.se/commander/

Komuna

  • Guest
Re:unassignvehicle - They doesn't care!
« Reply #1 on: 01 Oct 2003, 15:31:02 »
There are two nice commands to solve yout prob:

_array/[_unit] orderGetin false

and

_unit allowgetin false