OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: gadolinite on 29 May 2004, 04:37:15

Title: why does this happen?
Post by: gadolinite on 29 May 2004, 04:37:15
     I have a helicopter named paradrop.  It is on a string of two waypoints.  The first waypoint tells the chopper to flyinheight 150.  The second executes the paratrooper script.  The script does not work with the flyinheight in the first waypoint, it still does not work in initilazation fields.  It does work when the flyinheight command is in the paratrooper script.  The 12 guys are set to moveincargo to the chopper in their init fields.  Why does this happen?  How can I fix this?


Thanks
Title: Re:why does this happen?
Post by: Hawkins on 29 May 2004, 09:09:00
How do you order the flyinheight in the waypoint? You have to use:

name_of_helo flyinheight 150

Was this what you were after? :) Also as a sidenote, I wouldn't recommend executing the paratrooper script in a waypoint. I'd rather use a trigger which is activated once the chopper is present. I've had some problems with waypoints executing scripts in the past and thus I almost never use waypoints anymore. I hope I was able to help! :)
Title: Re:why does this happen?
Post by: Loup-Garou on 29 May 2004, 12:06:02
Use "flyInHeight" in a trigger linked (F2) to the helicopter. See my topic : http://www.ofpec.com/yabbse/index.php?board=6;action=display;threadid=16376;start=0  ;).
Title: Re:why does this happen?
Post by: rhysduk on 29 May 2004, 12:15:22
Try this:

http://www.ofpec.com/yabbse/index.php?board=6;action=display;threadid=7848;start=0

Rhys