Jump to content
Sign in to follow this  
tboy

Waypoint trigger

Recommended Posts

what is the script that tells the unit to execute the next waypointconfused.gifconfused.gif

Share this post


Link to post
Share on other sites

what i need is when someone enters a trigger zone...

another unit that paused till then start to move to the next waypoint/s

Share this post


Link to post
Share on other sites

make two move waypoints for another unit

first move wp place near starting position of another unit

then

synchronize detection trigger with first waypoint

Share this post


Link to post
Share on other sites

do i need to script the trigger or just:

activated by: "west","present"

and sync. ?

Share this post


Link to post
Share on other sites

you need no script.

sychronizing the first waypoint at unit with trigger will do the job.

the unit will move tp 1st wp and stop. If trigger is activated the unit will move on to second waypoint.

trigger settings to your likes:

activation: west or group the trigger (F2) with your player so only the player will fire the trigger.

Share this post


Link to post
Share on other sites

Why not just put a variable set to true when the trigger is activated, e.g:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">on activation: move1 = true;<span id='postcolor'>

and on the condition for the waypoint, delete "true" and type in "move1"?

Simple, neh?

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">Why not just put a variable set to true when the trigger is activated, e.g:

<span id='postcolor'>

hmm - why not just drag a line from a trigger to a wayoint,

instead of adding an extra variable in here. wow.gif

I mean, i'm often using variables, but as long as i can do

stuff simplier, i prefer that simplier one.

The problem with using variables, you might notice the first

time, when creating more complex missions. wink.gif

You'll find yourself inside a jungle of variables, and might

get lost in there.

After testing your mission dozens of times, you decide to start

it from scratch again, because you can't rememer, wherelse

you were changing the state of one of your variables.

~S~ CD

Share this post


Link to post
Share on other sites

there is one BIG problem...

when i acivate the trigger the unit only goes to the next waypoint and stops... how can i make him go ALL the waypoints in ONE time??

Share this post


Link to post
Share on other sites

I´m pretty sure the type of waypoints you chose was wrong.

If you setup the waypoints like this there are no probs:

1.Move WP (synchronized with trigger) directly at units feet

2. Move WP

3. Move

4.....

If you choose another WP type like Hold, Guard, Sentry the unit will stop at waypoint to perform ordered action.

For example if you choose Seek and destroy the unit will search the area till all enemies are down and then procceed to it´s next wp.

If you need futher explanations on Waypoints check out the tut´s at my Homepage in the cookbook section.

Share this post


Link to post
Share on other sites

hmm - i can't imagine, why the unit will stop at the

next waypoint then.

Give us more info, how you did setup your waypoints +

triggers here.

My only assumption is:

you did syncronize or use other conditions in the following

waypoints aswell.

Here's an example, that should do your job:

wp1 - move

wp2 - move - syncronized with a trigger

wp3 - move

wp4 - move

OK, the unit will start moving to waypoint 1, and wait there,

until the trigger becomes activated.

Once the trigger is activated, the unit will move to wp3, and

then to wp4.

:edit - ah yes, just seen Balschoiw's reply - this could in fact

be the reason then too.

~S~ CD

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (DV Chris Death @ Nov. 19 2002,18:14)</td></tr><tr><td id="QUOTE">Here's an example, that should do your job:

wp1 - move

wp2 - move - syncronized with a trigger

wp3 - move

wp4 - move

OK, the unit will start moving to waypoint 1, and wait there,

until the trigger becomes activated.

Once the trigger is activated, the unit will move to wp3, and

then to wp4.<span id='postcolor'>

Little mistake :

When trigger is synchronized with second wp then unit will go through 1st wp and will wait near 2nd one.

Share this post


Link to post
Share on other sites

wow.gif  huh - off course the unit will first stop at the waypoint

which is syncronized with the trigger, and not one earlier.

Thanx and grrrr for revealing that mistake Bart  biggrin.gif

~S~ CD

Share this post


Link to post
Share on other sites

thanks guys... it realy helped me

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  

×