Jump to content
Sign in to follow this  
RabbitxRabbit

Making AI Ignore Units

Recommended Posts

I'm creating a scenario with zombies. The first one they encounter starts off as blufor so it doesn't attack the players, but a trigger makes it switch to "EAST" side when you get close enough. The problem is, when it switches sides my team of ai immediately attack and kill it before it can attack the players.

 

Is there a way to have your ai ignore it for a few seconds so that it attacks the players before they start shooting at it?

 

Thank you in advance!

Share this post


Link to post
Share on other sites
4 hours ago, RabbitxRabbit said:

Is there a way to have your ai ignore it for a few seconds so that it attacks the players before they start shooting at it?

When you switch it's side also use: unit setCaptive true;

 

Then when you want it to be shot at do: unit setCaptive false;

Share this post


Link to post
Share on other sites
On 3/19/2024 at 1:17 AM, mrcurry said:

When you switch it's side also use: unit setCaptive true;

 

Then when you want it to be shot at do: unit setCaptive false;

 

Excellent! Thank you so much!

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  

×