Terrain type. Obtain with LUA? (Full Version)

All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Lua Legion



Message


Bandura1 -> Terrain type. Obtain with LUA? (11/17/2019 2:02:10 PM)

it is possible to obtain terrain of unit location?

Any code similar to World_GetElevation (location) but to terrain type.

Thanks.




KnightHawk75 -> RE: Terrain type. Obtain with LUA? (11/17/2019 11:30:07 PM)

Great question.




michaelm75au -> RE: Terrain type. Obtain with LUA? (12/2/2019 7:15:10 AM)

Has been added to the request list




tjhkkr -> RE: Terrain type. Obtain with LUA? (12/5/2019 2:19:34 AM)

quote:

ORIGINAL: Bandura1
it is possible to obtain terrain of unit location?
Any code similar to World_GetElevation (location) but to terrain type.
Thanks.


What a fantastic idea!




michaelm75au -> RE: Terrain type. Obtain with LUA? (12/9/2019 11:59:26 PM)

Note on new Lua method:

quote:


Sea
print(World_GetLocation({latitude='-16.4183855919871', longitude='111.506732704337'}))
{ altitude = -4937, cz = { 4 = 96, 1 = 24, 2 = 48, 3 = 72 }, layer = { strength = 0.61, ceiling = -123, floor = -207 } }


Land
print(World_GetLocation({latitude='51.5052833557129', longitude='-2.27636313438416'}))
{ slope = 0, cover = { value = 12, text = 'Land: Croplands ' }, altitude = 128 }



Additional table items may be added later.
---
It is basically trying to show the details available in the cursor block from the map.




Bandura1 -> RE: Terrain type. Obtain with LUA? (12/10/2019 6:55:20 PM)

Thanks [&o]




KnightHawk75 -> RE: Terrain type. Obtain with LUA? (12/12/2019 2:25:11 AM)

Thanks for this very useful addition.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
1.015625