Home   Help Search Login Register  

Author Topic: Skipping between waypoints  (Read 1468 times)

0 Members and 1 Guest are viewing this topic.

Offline Gogs

  • Contributing Member
  • **
  • WWIIEC - Gracefully retired boss
Skipping between waypoints
« on: 06 Apr 2007, 03:06:11 »
Hello guys, been a while since I've posted around here, but, here a quick question.

Firstly, if anybodys got a moderatey advanced waypoint tutorial, that would save your typing me an answer, if not, is there any way to skip between player waypoints. For instance, your player has been hovering around a waypoint which has been moving via looping script and the setWPPos command, but the time has come to move on. Any idea if there is a command along the lines of

aP foryournextwaypointdo [aPgroup,3]

I can't find one in the command ref, or mention of one in any of the fairly simplistic waypoint tutorials I've looked at. Any help would be much appreciated. Cheers guys.


Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re: Skipping between waypoints
« Reply #1 on: 06 Apr 2007, 09:14:11 »
as far as i know, the only way is to attach a switch trigger to the waypoint via a synchronize line and make the condition of the trigger some variable which needs to be set to true.

in the init file you set (for example) skip_wp to false. the group will hover around the waypoint as normal. when you want them to move on, you set skip_wp to true, and off they go.

Offline Gogs

  • Contributing Member
  • **
  • WWIIEC - Gracefully retired boss
Re: Skipping between waypoints
« Reply #2 on: 06 Apr 2007, 13:20:12 »
Will that force a skip, say if its a move waypoint and they haven't got there yet, or will it just allow progression to the next WP, like the sycronise line? Cheers for your help.

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re: Skipping between waypoints
« Reply #3 on: 06 Apr 2007, 17:48:42 »
it will skip. if the group is en route to a move waypoint and a switch trigger synchronized with a waypoint farther on is fired, they will immediately move for that new waypoint, no matter how many other waypoints lie in-between.

Offline Gogs

  • Contributing Member
  • **
  • WWIIEC - Gracefully retired boss
Re: Skipping between waypoints
« Reply #4 on: 07 Apr 2007, 02:54:03 »
Sorted, sweet. I wish I'd known that before. I'd always vaugely wondered how to get WP's out of sequence. Anyway, big fat solve, cheers Bedges. :check: :yes: ;) :)

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re: Skipping between waypoints
« Reply #5 on: 10 Apr 2007, 23:50:14 »
I just want to add that by using a switch trigger you can also
repeatedly use a waypoint.

Not only forward skipping but backward skipping too.

It can also be seen to force a unit/group onto the next
waypoint behind the switch-trigger syncro line. ;)

~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 Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re: Skipping between waypoints
« Reply #6 on: 11 Apr 2007, 00:04:47 »
An example of backward skipping, Chris? Chris, you must really write a comprehensive advanced waypoint tute someday as you seem to be the master.
urp!

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re: Skipping between waypoints
« Reply #7 on: 11 Apr 2007, 22:50:04 »
 :-[

Well with backward skipping i meant that you can also switch to waypoints
which have already been left behind.

Let's say a group with 7 waypoints.

wp1
wp2 - syncronised with triggerA
wp3
wp4 - syncronised with triggerB
wp5
wp6 - syncronised with triggerC
wp7

Now the group would move over wp1 to wp2 and wait for triggerA
to procceed to wp3.
Now triggerB activates and the group would skip wp3 and wp4 and
move on to wp5.
Activating triggerA would make them move to wp3 even if they already
have left it behind.

All this needs is some organised use of boolean conditions and 3 switch
triggers activation: repeatedly.

I did use this technique often to set up different sets of waypoints for groups
inside the same mission so that they could be used for more than one
situation in a mission not limited by a cronologic running storyline.

About an advanced waypoint tute i've already been thinking (could save me a
lot of posts)  :D but atm i'm too busy in real life to work on it.
Will bring this back up when i get more spare time left again. ;)

~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