pakfront Posted May 28, 2013 Posted May 28, 2013 I vaguely remember seeing a function tthat, given a position, returned the type of land there (water, ground, etc.). But I can't seem to find the documentation for it again. Is there such a function? I have searched quite a bit and vaguely remember it being a method on the land singleton , but it is not documented.
Deck Posted May 28, 2013 Posted May 28, 2013 It can be difficult to find the correct pages on the wiki, since the content is changing quickly. http://en.wiki.eagle.ru/wiki/Simulator_Scripting_Engine/DCS:_World/Part_1#land
Grimes Posted May 28, 2013 Posted May 28, 2013 if land.SurfaceType(vec2) == 'LAND' then do whatever end The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
Recommended Posts