Jump to content
Sign in to follow this  
Bnae

Class name

Recommended Posts

Hello,

 

Is there a way to class name of original map objects? I mean rocks, trees, pipes, buckets etc.

I know the class names, but is it possible to get the classname with cursorTarget or nearestObject.

 

Tried with 

_obj = cursorTarget;
if (_obj isKindOf "Thing") then {hint str _obj};

but it gave empty string.

 

Also tried with nearestObjects [player, [], 5]

Share this post


Link to post
Share on other sites
nearestTerrainObjects [player, [], 50]

That's what you are looking for. Keep in mind that not all terrain objects have class names.

Share this post


Link to post
Share on other sites
nearestTerrainObjects [player, [], 50]

That's what you are looking for. Keep in mind that not all terrain objects have class names.

 

 

Thank you R3vo, i do not know how i missed that command.

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  

×