Jump to content
Sign in to follow this  
alleycat

Object class of pop up targets?

Recommended Posts

_targets = []; 

{ 
    if (typeof _x == "TargetP_Inf2_F")  then 
    { 
         _targets set [count _targets, _x]; 
    }; 
} forEach vehicles;  
diag_log text format["_targets: %1", count _targets];

Always counts 0. What object class are pop up targets?

Share this post


Link to post
Share on other sites

Did you mean what type they are? Depends of the popup target. Place one in the editor and put this to the init field:

copyToClipboard str(typeOf this);

Preview, and the type is in your clipboard...

Share this post


Link to post
Share on other sites

Thanks, that is very practical.

---------- Post added at 07:33 ---------- Previous post was at 07:27 ----------

Actually that did not solve the problem. I need to find out what object subclass they are because filtering them from vehicles wont work.

Share this post


Link to post
Share on other sites

Still cant find a solution, what object class should i filter for to detect pop up targets? vehicles does not work.

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  

×