OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: HuNtEr-exz on 29 Oct 2002, 13:14:48

Title: Switching vehicles
Post by: HuNtEr-exz on 29 Oct 2002, 13:14:48
how is it possible to make everyone from vehicle A teleport and instantly be in the same positions as they were in vehicle A in vehicle B with out them having names? (cause i could just do the movein driver command)
Title: Re:Switching vehicles
Post by: Ranger on 29 Oct 2002, 21:03:38
Sure, that's easy enough to do.  You need to use the driver, gunner, and commander commands.

Let's say you have a tank named tank1, where your 3 crewmembers currently are.  Let's say you want to move them into an empty tank, tank2.  Your script or activation field would have the following code:

driver tank1 moveInDriver tank2
gunner tank1 moveInGunner tank2
commander tank1 moveInCommander tank2

I'm not sure, but you may or may not also have to use the assignAs... commands.
Title: Re:Switching vehicles
Post by: HuNtEr-exz on 29 Oct 2002, 22:52:38
ok  thx that works