Jump to content

I cant check the Snow amount on the Ground. CarsInTheSnow Mod


Trackhe

Recommended Posts

Good Day,

 

i try in many diffrent ways in Lua to get the State of the Snow. 

But i get only 0, nil, false or an error (maybe if i try bad syntax thinks my bad.)

if i get with

print(getClimateManager():getSnowIntensity())

then it prints out how strong it snows. from 0 to 1

but i want to get the snow amount of the tile.

sometimes the debug general log message shows the snow change from 0 to 100

but this is what i want to check with the code. because i want to change the car skins to a snow version if the tiles are snowly.  (maybe anyone have a better idea to decide when the cars should be snowy)

 

i tried out:

getClimateManager():BOOL_IS_SNOW
getClimateManager().BOOL_IS_SNOW
getClimateManager():climateBool --but i dont relly know to use it.
getClimateManager():getClimateBool(int int1) --same problem i dont figure out which int is it.
zombie.iso.weather.ClimateManager.BOOL_IS_SNOW --its alwasy false. surly the default because i guess this is not the right instanz i dont know
getErosion():snowCheck();
getErosion():isSnow(); --every time false

 

no idea that i can do
i had the idea to get the x y z data from the player and then check the tiles but if i cant do so easy thinks i guess i need to learn it before i try thinks like that. (i found the classes already for this step. )

 

I hopy anyone can help me. maybe it is not implemeted jet or i do thinks wrong.

 

Best regards and thank you. Trackhe

Edited by Trackhe
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...