OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Goatcheese on 03 May 2005, 11:35:41

Title: Units start in vehicles
Post by: Goatcheese on 03 May 2005, 11:35:41
hey guys
just wondering if theres a way to get units to start in vehicles of any sort at the beginning of a mission

thanx
Title: Re:Units start in vehicles
Post by: macguba on 03 May 2005, 12:00:10
Check the moveInXXX and assignAsXXX commands in the comref.    You need both, otherwise the game does not "know" the loon is in the wagon.
Title: Re:Units start in vehicles
Post by: Goatcheese on 05 May 2005, 10:33:50
ok thanx ill check it out
Title: Re:Units start in vehicles
Post by: Goatcheese on 05 May 2005, 11:01:27
wow thanx it worked.....i only needed to use the 'MoveInCargo' command though ;D ;D ;D
Title: Re:Units start in vehicles
Post by: Goatcheese on 05 May 2005, 11:04:28
hmm one more question.......i need my guys to get out quickly otherwise they get wasted.....they get out normally but its not fast enough....is there a 'ordereject' script or something...coz i need them to just pile out asap ???
Title: Re:Units start in vehicles
Post by: sharkyjoe on 05 May 2005, 18:10:26
I would use a script from the Editors Depot to eject them. A Helio eject would work just fine, assume that you are to use a trigger for that. Otherwise it may look a little out of place these guys just POPPING out of vehicles, well they do that now, but even more so with direct code of unassignvehicle.