OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Evan Scown on 11 Jun 2006, 21:58:37

Title: fuel dump
Post by: Evan Scown on 11 Jun 2006, 21:58:37
I'm wanting to know how I can set a choppers fuel to be equal to 0 after it passes a certain longitude point on a map. Say for example it is heading south from 02 and it drops all it's fuel at 11
Title: Re: fuel dump
Post by: SgtSlick on 11 Jun 2006, 22:00:49
just use a trigger, its much easier  ;)
Title: Re: fuel dump
Post by: Evan Scown on 11 Jun 2006, 22:24:20
For n00bs like me who don't get triggers?
Title: Re: fuel dump
Post by: bedges on 11 Jun 2006, 22:40:13
at the top of the editor there's a "triggers" button. click it.

now double click on the map. the triggers dialog will appear.

(http://www.ofpec.com/ed_depot/the_files/OFPResources/editor_screens/OFP_editor_triggers.jpg)

make axis a 100, axis b 3000 and the angle 90. leave it as an ellipse.

leave all the activation stuff.

leave the next bit as well.

at the bottom where it says 'on activation', type

Code: [Select]
chopper_name setfuel 0
click ok.

now you have a huge trigger. if you click and hold on it, and press the shift key, you can move the mouse around to change its angle to whatever you want if it's not correct.

click and drag the trigger to wherever you need it on the map.

at the top of the editor there's a "groups" button. click it.

click and hold on the trigger. now drag the mouse to the chopper. once the mouse is over the chopper, let go. there should be a blue line connecting the trigger and the chopper, meaning they're grouped.

save and preview. the chopper's fuel will be set to 0 once it enters the trigger.
Title: Re: fuel dump
Post by: Evan Scown on 11 Jun 2006, 22:43:40
Thankyou SOOOO much. Now I can script triggers! OFPEC is great!