Jump to content
Sign in to follow this  
R34P3R

make AI Unit friendly to Player/Group ?

Recommended Posts

Hi there ;-)

Another little question:

Is there a way to make Player or Group friendly to AI Unit ?

My problem: in my mission i need to destroy AAA Tank.. but if i move to him he always shooting me down :-( Now i ask me if is there a way that he only shooting on AirUnits and not on the Player / Ground Units ?

Thanks a lot.

Share this post


Link to post
Share on other sites

setCaptive would probably be your best bet, and you could have that changed based on proximity to the AAA, that way after you leave the area, other enemies will still shoot at you :p.

Share this post


Link to post
Share on other sites

but then also the groundunits on the AAA will not attack me :-(

Share this post


Link to post
Share on other sites
but then also the groundunits on the AAA will not attack me :-(

Well I wouldn't go up to an enemy vehicle myself until the area was clear :p.

Share this post


Link to post
Share on other sites

you could group the tank to a unit of the same side as the player /group, then delete the unit.

then once the player /group has placed the charge and the tank is dead/unable to move create an enemy unit and group that back to the tank crew then delete the unit.

A bit of extra work but the same effect and less likely to have all AI ignore you.

Share this post


Link to post
Share on other sites

Got it... setFriend is the key and using civil as gunner.

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  

×