mr.peanut 1 Posted June 12, 2007 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
Nutty_101 0 Posted June 12, 2007 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
mr.peanut 1 Posted June 12, 2007 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
fasad 1 Posted June 12, 2007 I said this in a topic a while ago, hopefully it should still be true 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
mr.peanut 1 Posted June 12, 2007 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