OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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)
-
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.
-
ok thx that works