Jump to content
Sign in to follow this  
mr.peanut

Map objects unclassed

Recommended Posts

Is there any way to hook the map objects that have no exposed class(trees for example), without using their ID? I need to be able to hook all objects near a unit without knowing their ID. It seems that this is not possible, which I find mind boggling.

Share this post


Link to post
Share on other sites
Is there any way to hook the map objects that have no exposed class(trees for example), without using their ID? I need to be able to hook all objects near a unit without knowing their ID. It seems that this is not possible, which I find mind boggling.

There might be ways. If you turn an object to a string you can see it's id and the object filename. However it seems that quite a bit of the commands and handlers will not attach to them.

Share this post


Link to post
Share on other sites

I am talking about getting all objects(classed and unclassed) within a radius at any location. A new command is needed, one that grabs all streamed unclassed map objects within a radius of a position. Surely this must be possible.

Share this post


Link to post
Share on other sites

I said this in a topic a while ago, hopefully it should still be true smile_o.gif

Quote[/b] ]<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">(nearestObjects [player,[], 10]) - ((getPos player) nearObjects 10)

Returns an array of objects within 10m of the player that have no class, including things like roads and trees.

Share this post


Link to post
Share on other sites

Ah, stupid me was trying to use [""] instead of [] as the class array for unclassed map objects. I'll give this a try tonight. Thanks for your reply fasad, this was really eating me up..

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  

×