Trackhe Posted January 14, 2022 Share Posted January 14, 2022 (edited) 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 January 14, 2022 by Trackhe Link to comment Share on other sites More sharing options...
ProjectSky Posted January 15, 2022 Share Posted January 15, 2022 (edited) getCell():gridSquareIsSnow(x, y, z) -- is snow tiles? IsoCell doesn't expose snowGridCur, can't get snow amount, but this method can be used to get tile is covered with snow Edited January 16, 2022 by ProjectSky Link to comment Share on other sites More sharing options...
Trackhe Posted January 15, 2022 Author Share Posted January 15, 2022 @ProjectSky thank you. i guess i should try to use it. but i dont understand why i cant get the variable BOOL_IS_SNOW Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now