OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: max_killer_payne on 14 Jul 2003, 19:23:41
-
I'm making a 'Nam mission and a cutscene kicks off when everyone is in a chopper. It never happened before, just earlier today when I was editing the mission. The chopper begins to take off. And this is only supposed to happen when everyone is on board the chopper (I use a trigger for this) but it doesent takes off and hovers around then moves off a tiny bit. I've tried loadsa commands to try and make sure it doesent fly off so far I've tried:
DoStop True
CommandStop True
DoStop This
CommandStop This
Heli Disableai "Move"
none of the work, is there a command to make sure the engine doesent start. And then when everyone is on board the chopper then starts its engine.
-
Have you tried choppername stop true in initfield? Usually just typing choppername flyInHeight 0 in choppers load waypoint works for me.
-
Here's an easy way using a single trigger. Set the fuel slider on the helo to 0. Count the total units that will be in the helo including the pilots. Let's say 6 guys are getting in as cargo, and you have 2 pilots for a total of 8 dudes. The trigger condition would be-
count crew heloname > 7
on activation-
heloname setfuel 1
This will work as long as none of em are killed in battle, so it's usefull for cutscenes mostly.