Jump to content
Sign in to follow this  
stephen271276

Keep a certain distance?

Recommended Posts

I need a trigger that will activate once the player gets too close to an enemy unit, how can i do this in the condition of the trigger?

Basically the player is "setcaptive true" and he is to follow an enemy ai through a town to find out where he is holed up.....

But if you get too close the trigger makes the player "setcaptive false"

and the ai either runs or engages the player.

Share this post


Link to post
Share on other sites

Well, just check the distance with the distance command, such as :

player distance my_ai_guardman < 10

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  

×