Jump to content
Sign in to follow this  
Cowboy_F

Ground object ID:s

Recommended Posts

Can I see ground object (trees, rocks...) ID:s? I was searching those like this: hint format ["nearest:%1", nearestObjects [player1, ["all"], 300]] but I find only buildings and vechiles.

Share this post


Link to post
Share on other sites

In the editor there's an "IDs" button, I'm pretty sure it shows trees, rocks, decals, etc. You gotta really zoom in for their numbers to appear on screen though.

Share this post


Link to post
Share on other sites

Yes, but my scripts can´t read them from there.

Share this post


Link to post
Share on other sites

Would this work? I'm sure you've probably checked there, it's from the wiki...

it seems there they have an example which looks to "find" the nearestObject using its ID in the editor as a filter:

_nObject = getPos player nearestObject 123456 

http://community.bistudio.com/wiki/nearestObject

If that's indeed what it does than using it in that way would be more of "findThisObjectEvenIfNotNear" than "nearestObject" and you could run it from anywhere in the map.

Sorry, I'd check myself but I'm not at my own comp atm.

Edited by JDog

Share this post


Link to post
Share on other sites

That display only given object ID and name. But I found it: hint format ["nearest:%1", nearestObjects [player1, [], 300]] That display all object ID:s including ambient animals.

Share this post


Link to post
Share on other sites

Ah ok I thought specific entities were what you wanted, which is why I brought that one up. So just removing the "all" did it huh? Glad you figured it out.

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  

×