Detecting if boat is out of water ( on shore )
#9

Quote:
Originally Posted by HeLiOn_PrImE
Посмотреть сообщение
if custom maps are a problem, you should constantly check if the boat is above 1 m altitude AND check if it receives damage. If the boat receives damage, but it's below 1 m, there's a high chance to be just a collision made with an object or vehicle. If the boat is above 1 m and is receiving damage, the boat might be on shore. You can add more rules on this regarding the area, because I know that there are places on the map below the sea level, and not flooded with water.
As stated above, that can't be checked since of waves, especially because I intend to use SetWaveHeight from sa-mp+ plugin.
As well, land can be less than 1m in altitude.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)