Jump to content
ZaellixA

How to check hostility of a side

Recommended Posts

Hello all, I hope you are doing well. I am looking for a way to find out if a side is hostile towards a unit. I am getting some units in an area with inAreaArray and from those, I pick (or count) only the ones that are on the same side as the unit of interest. I have tried to "subtract" those two arrays in order to get what's left of the original array (the one returned by inAreaArray) but in this way, I also get civilians and possibly independent which may or may not be hostile to the unit of interest (the unit's side is not predefined).

 

So, the question is... Do you smart ArmA forum's people have any bright idea of how I could solve the problem (I kinda see something EXTREMELY simple coming and this will be funny 8D).

Share this post


Link to post
Share on other sites
37 minutes ago, Harzach said:

Maybe BIS_fnc_sideIsEnemy?

 

Ah, or getFriend, thought that returns a scalar, so you'll need to filter for a specific value.

Well, BIS_fnc_sideIsEnemy works like a charm :). Thanks a lot...

 

(I told you it would be something extremely simple :D)

  • Like 1

Share this post


Link to post
Share on other sites

Sometimes it is, sometimes it isn't 😄

 

  • Like 2

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

×