Jump to content
Sign in to follow this  
BaronVonRed

Advanced waypoint functionality

Recommended Posts

Hello - here is my scenario:

* The player is in a helicopter following a waypoint marker. After they enter a triggered zone, they are diverted to a different area.

- Is there any way to make the old waypoint go away and use the new one?

I tried putting triggers and syncing them in conjunction with conditions on the waypoints, but that didn't work. I also tried using nextwaypoint in this context (I may not be using it right):

In the activation field of the trigger that tells them to go somewhere else:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">

player domove nextwaypoint

{also tried}

player commandmove getpos(nextwaypoint)

<span id='postcolor'>

None of it worked.

Can anyone offer suggestions?

Share this post


Link to post
Share on other sites

Well, the basics you've got - waypoint syncronized with

trigger = wait there until trigger goes off.

Now for your question, you just need to use triggers with

type: switch

Such a switch-trigger forces a unit/group to move directly

(imidiately) to the next waypoint of the one being syncronized

with the trigger. It doesn't matter, wether the unit has already

passed this waypoint, or even not passed the wayoints between 1st wp and the syncronized one.

e.g:

wp1 - move

wp2 - move

wp3 - hold - syncronized with a switch trigger (trigger1)

:note - you can use any waypoint type instead of hold here

wp4 - move

wp5 - hold - synce'd with another switch trigger (trigger2)

Now this would let the unit move to wp1, then wp2, and

then wait at wp3, until one of the two trigger goes off.

If trigger2 becomes active, the unit will move to wp6,

If trigger1 becomes active, it will move to wp4

It doesn't matter, in which order the triggers getting activated, the unit will always go to where it gets switched

to.

hope this helps a bit

~S~ CD

Share this post


Link to post
Share on other sites

That is just AWESOME - I always wondered what the SWITCH type was for. I am at work now, but will try this out this weekend- THANK YOU! biggrin.gif

Share this post


Link to post
Share on other sites

all i can say is i know its possible, its in some of them BIS chopper missions, when your diverted to help people on your way!

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×