OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: icarus_uk on 22 Feb 2004, 03:23:40
-
Ive got a unit following a WP path, when it reaches a certain WP it runs a script, part of which tells the unit to move to another position. Afterthis I am having issues getting the chopper to then continue to follow its wp path. I could put triggers around each WP telling the unit to move to the next WP, but that just ugly. It there a more elegant way?
-
Does the chopper have a waypoint that is syncrinized with one of the unit's waypoints? If so, a script that alters the unit's waypoints will tend to mess with any other unit (like a chopper) that has any waypoint synced with the unit in question. Try using a script to control the chopper rather than traditional waypoints. you can put invisible "H"s for instance and make a "Unit domove" script to make the chopper move from one invis. "H" to the next. You will have to name each invis"H" and if the chopper needs to land at one of the "H"s to pick up the unit, you will have to use a script for that also. For the most part, I have found scripted movement to be more reliable and ADJUSTABLE when it comes to syncrinization beteen units, than the standard editor waypoint placement.
-
part of which tells the unit to move to another position. Afterthis I am having issues getting the chopper to then continue to follow its wp path.
Check out Chris's post on scripted waypoints.
http://www.ofpec.com/yabbse/index.php?board=6;action=display;threadid=10697;start=0 (http://www.ofpec.com/yabbse/index.php?board=6;action=display;threadid=10697;start=0)
Sounds like all you have to do is make sure your custom waypoint is reached before exiting the script.
-
Nice one Unnamed ;)
However, i would suggest to better go for the newer
thread about this subject, i made - where i also included
a few example missions:
http://www.ofpec.com/yabbse/index.php?board=6;action=display;threadid=13884;start=0
~S~ CD
-
Stunning.
It worked better than I expected. I can keep my WP cycle and dont have to run a script for the entirity of the mission. Marvelous.