Jump to content
Sign in to follow this  
fortun

Do unit invisible or attackable by AI?

Recommended Posts

Hello, i have a question.

On my mission, i have some jets that is going to do an attack on a village, after that, the talibans will get reinforcements by 2 SUVs full with talibans.

The problem is that when the aircraft are shooting in the village, they find the SUVs that is like 800 meters away from the village, and kills them. And that is not what i want to happen.

So how can i make the enemy SUVs invisible to my teams aircrafts so they dont shoot at it?

Share this post


Link to post
Share on other sites

if you put:

this setCaptive true;

in each of the suv's init field it should work. you will have to set it to false when you want your AI to fight the suv's again.

setCaptive

Share this post


Link to post
Share on other sites

Thanks m8 for the quick answer, gonna try this now ;)

---------- Post added at 01:21 PM ---------- Previous post was at 12:19 PM ----------

It worked out very well i think.

But one question more, how can i do a whole group/squad capative easy without naming every player in the group?

Share this post


Link to post
Share on other sites

{_x setCaptive true} foreach units groupname

groupname can also be:

group this

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  

×