Home   Help Search Login Register  

Author Topic: Replacing Vehicle  (Read 515 times)

0 Members and 1 Guest are viewing this topic.

Jimbo

  • Guest
Replacing Vehicle
« on: 14 Apr 2003, 04:28:06 »

I'm a newb at scripting, so help me out here:

I got a tank, and when some action is invoked (through eventhandler) I want that tank to be replaced by another (a new tank), but with the same people in it.

Is it possible? If so, can you help me?  ???

MorMel

  • Guest
Re:Replacing Vehicle
« Reply #1 on: 16 Apr 2003, 17:51:24 »
I have no "EventHandlers" or "CreateVehicle" commands as i'm using the old OFPv1.00... Thisway i'll give you a "non reliable" answer:

DeleteVehicle your tank and then CreteVehicle a new one in the same place of the older. Then, just MoveIn<crewstate> (moveindriver, f.ex.) your crew. I think it works fine, but i'll leave the syntax with you ;).

Remember that before you delete your tank you should remove its crew, as they might get deleted as well... Therefore just place them in a "unsightable" place and then get them back into the new tank.

I just read in a thread that a vehicle's crew is named in the begining of a mission: inside the Tank1 will be Tank1D (as driver), Tank1C (as commander), and Tank1G (as gunner). Check it out and then tell me something.