SA-MP Forums Archive
No rain through walls - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: No rain through walls (/showthread.php?tid=662685)



No rain through walls - DarkMythHunter - 08.01.2019

Is it even possible for the weather not to affect when you're inside a structure you made? Example, I placed a wall, made a home, but still, the rain, thunder, goes inside still. Is there any way to avoid that? How? Thanks.


Re: No rain through walls - Kaliber - 08.01.2019

Yes, with a player timer you can check, if the player is in that area.

If so, use
Код:
SetPlayerWeather
so the weather is good just for him, cause he is inside a building.

If he leave it, it gets rainy again


Re: No rain through walls - xXmAn40100Xx - 08.01.2019

I think objects that you place in your code will always make the rain go through the objects that you placed, because they're not detected by the game as places where the rain shouldn't be. I guess the best thing you can do it's changing the weather when the player goes into the house, just like Kaliber said.