#Include zWater

4 messages · Page 1 of 1 (latest)

modest gyro
ebon mesa
#

To be honest this wont work, cause water isnt always below 0, some parts in GTA SA the z (IN LAND) is below 0 and they aren't in the water, and some parts the water is above 0, thats why water.dat exists

#

And your loop on everyone every 5 seconds is unoptimized, it should be a dynamic area...

slow wasp
#

This does not work well
Better to use ColAndreas and 3DTryg include

Tryg3D::IsPointInUnderwater(...)
Tryg3D::IsPointInWater(...)
Tryg3D::IsPointInWaterFrontOfPlayer(...)
Item::IsPointInWaterOrient(...)