Jump to content
Sign in to follow this  
nullsystems

nearestObject to enemy...

Recommended Posts

Taken from ArmA Wiki..

_nObject = nearestObject [player, "StreetLamp"]

Any idea what the ENEMY would be in that array?

Example:

_nObject = nearestObject [player, "enemy"]

_nObject = nearestObject [player, "sla"]

_nObject = nearestObject [player, "east"]

...etc

None of those return the value of AI or enemy to the player.

Could anyone help at all ?

Share this post


Link to post
Share on other sites

SoldierEB

SoldierEG

SoldierE

Ive tried all those, none of them return.

I know the system works, because if I use " man " I find myself, but those dont. Odd. Any other ideas?

Share this post


Link to post
Share on other sites

As I said, SoldierE doesnt work either.

None of the class names listed on Arma Wiki respond sad_o.gif

Share this post


Link to post
Share on other sites

I better learn to pay attention wink_o.gif

Have you tried using nearestObjects?

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_objects = nearestObjects [player, ["SoldierEB"], 200];

Edit: Btw, how far away did you put the enemies when you tested? As the nearestObject command won't find anything further than 50m.

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  

×