Jump to content
Sign in to follow this  
rebelsupertrooper

How do you make enemy AI not attack friendly AI

Recommended Posts

Trying to make a escape from prison mission, cant find the code to make it to where EAST dosent shoot WEST untill they have a gun/start to escape.

Share this post


Link to post
Share on other sites

in the init field of the captured person put :

this setcaptive true;

then on a trigger for the enemy to shoot them put in its on activation field:

nameofunit setcaptive 0;

where nameofunit is the name of the unit you want them to fire on.

Share this post


Link to post
Share on other sites

The setcaptive works, but with the trigger it dosent, for some reason its saying Set type any expected object. I have the name and such set allready but it still isent working

Edited by rebelsupertrooper

Share this post


Link to post
Share on other sites

If setting from captive to not captive, it will take a while for the enemy AI realise this until they attack you again.

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  

×