Jump to content
Sign in to follow this  
billybob12

How do you make an enemy goto next...

Recommended Posts

Im havin trouble here, I want an enemy, EAST, to sit in the woods and wait until the WEST arrives in a general location. I know you need a trigger for the area the West will arrive in, but what exactly do you do? Is there a specific command that will make the enemy hold at one waypoint until WEST is detected in the area, then move to next waypoint? I tried searchin forum...but got nothing...

Share this post


Link to post
Share on other sites

yes that is quit simple.

you have to synchronise the waypoints with the trigger thats all. The synchronise option is also in the top of the editor screen. Just drag a line from the waypoint to the trigger.

gl wink.gif

Share this post


Link to post
Share on other sites

OOOOHHHHHH, ok. I gues that comes from me only learning how to use the synchronize function just 2 days ago... tounge.gif

Share this post


Link to post
Share on other sites

I would use the sync, too, but it would also work if you put in the trigger activation field:

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

enemy1 domove getmarkerpos("label")

OR

enemy1 domove getpos(player)

<span id='postcolor'>

But that works better when you are working with an AI that has a waypoint patrol route that is cycling and you want him to break out of his route. Doesn't work too well with aircraft, though.

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  

×