Jump to content

Recommended Posts

Posted

Hi guys, 

I'm currently working on a vast ground AI upgrade. I would like to know if you have a way to get the position of a tree or a forest ? Or are these objects impossible to call ? 

 

Thank you

 

Nicolas

Posted (edited)

Yes I was thinking on both these solutions. I simply don't know what kind of ID I have to use along SceneryObject

Edited by dimitriov
Posted

I would like to think I asked nicely when making feature requests to detect trees. But alas, it is not really* a thing. 

*They are objects but world.searchObjects can't return them. I'd have to find a screenshot of it. The gist is I had saved world object Ids for checking some bug on the Syria map, I checked the mission after one of the updates to the map, and in that one version of the map some of the object ids corresponded to trees. At least getPoint, getTypeName worked on them. Anyway map updated again and those ids correspond to different objects now. The same goes for other knickknacks on the maps that are very small and have short rendering distance. At least with some of those the ids appear within hit events. 

 

  • Like 1
  • Thanks 1

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...