OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Longstreet on 06 Apr 2003, 13:59:27

Title: time delay help needed
Post by: Longstreet on 06 Apr 2003, 13:59:27
hi, i want to get an AI controlled chopper to leave with a 1 minute time delay, so far i can only get it to leave straight away (yes i am VERY new) hw do i do this?

thanx.
Title: Re:time delay help needed
Post by: dmakatra on 06 Apr 2003, 14:01:43
In the WP menu there is sumthin like time delay with three boxes next to it. Now, put 60 in all three of does boxes and the chopper will lift off after 60 sec.
Title: Re:time delay help needed
Post by: Longstreet on 06 Apr 2003, 16:51:09
i tried that, it dosnt work the chopper still lifts off straight away. any other ideas?
Title: Re:time delay help needed
Post by: Flapje on 06 Apr 2003, 17:50:01
make a wp on top of him with the 60secs and then the other waypoint.

Title: Re:time delay help needed
Post by: Longstreet on 06 Apr 2003, 18:00:41
ahhhh    ;)
Title: Re:time delay help needed
Post by: Longstreet on 06 Apr 2003, 18:58:08
make a wp on top of him with the 60secs and then the other waypoint.



this sounded good and i tried to , but no success. the chopper still lifts off straight away.   :'(

what it does now is take off, wait in the air for 1 minute (which is the amount of time  i set) then move off to the next waypoint. what am i doing wrong here?
Title: Re:time delay help needed
Post by: Flapje on 06 Apr 2003, 20:47:08
put in the init field of the waypoint: choppername flyinheight 1
Title: Re:time delay help needed
Post by: aggressor35 on 06 Apr 2003, 20:59:50
make sure in the special box of your chopper that  NONE is there and not FLYING then do the waypoint thing up above.
Title: Re:time delay help needed
Post by: dmakatra on 06 Apr 2003, 21:32:33
Or you could do it this way.

In the init field of the chopper you put this setfuel 0

Then Place out the WPs and then make a trigger, cond field true, time delay 60, 60, 60 and on act field you put in ChopperName setfuel 1

Hope this one helps :).
Title: Re:time delay help needed
Post by: Igor Drukov on 06 Apr 2003, 21:39:52
Well, the problem with a "Move" waypoint on top of the chopper is that AI understands it as a place to be reached BY FLYING (since it is a chopper). The only way that I can think of right now is to write a script like this :
dostop mychopper
~60
mychopper domove getwppos [mychopper, x]
exit
( where x is the number of the waypoint of that chopper...)
If you're not a scripter yet, let me know, there's a tedious way with triggers that will use the same commands.
When I wrote this, the real armstrong's solution was not uploaded yet...