Jump to content
Devastator_cm

Help with BIS_fnc_getEnemyTargets

Recommended Posts

 Hi Guys,
I am trying already since yesterday but couldn't manage to use this bis function.
I have a setup where blufor Group T1 is just infront of the Opfor group T2.
When I start mission and write the following from debug console

 

_targets = (leader t1) call BIS_fnc_getEnemyTargets; 
hint format ["count: %1", (count _targets)];

I get count: scalar which means it didn't return any target so array is null. How can this be? They are firing each other from 15 meter distance...

Share this post


Link to post
Share on other sites

I couldn't find BIS_fnc_getEnemyTargets.

Use BIS_fnc_EnemyTargets instead.

Share this post


Link to post
Share on other sites

Can someone shoot me and then delete this thread? I don't want to remember this moment  :banghead:

Share this post


Link to post
Share on other sites

Can someone shoot me and then delete this thread? I don't want to remember this moment  :banghead:

:shoot:Devastator_cm

Share this post


Link to post
Share on other sites

A question though :)
Why findNearestEnemy can find an enemy while 

_targets = (leader t1) call BIS_fnc_EnemyTargets; 
hint format ["count: %1", (count _targets)];

shows 0? I thought BIS function is just an extended version which returns array instead of single unit. Is there a range limitation by bis function which is not documented?

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

×