Home   Help Search Login Register  

Author Topic: After CommandMove, continue Wp path  (Read 578 times)

0 Members and 1 Guest are viewing this topic.

Offline icarus_uk

  • Members
  • *
  • LiarLiarPants Inflame True
    • [furryclan]
After CommandMove, continue Wp path
« 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?

Offline Raptorsaurus

  • Editors Depot Staff
  • *****
Re:After CommandMove, continue Wp path
« Reply #1 on: 22 Feb 2004, 07:07:00 »
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.

Unnamed

  • Guest
Re:After CommandMove, continue Wp path
« Reply #2 on: 22 Feb 2004, 14:23:32 »
Quote
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

Sounds like all you have to do is make sure your custom waypoint is reached before exiting the script.

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:After CommandMove, continue Wp path
« Reply #3 on: 22 Feb 2004, 15:46:35 »
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
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

Offline icarus_uk

  • Members
  • *
  • LiarLiarPants Inflame True
    • [furryclan]
Re:After CommandMove, continue Wp path
« Reply #4 on: 23 Feb 2004, 00:17:42 »
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.