SA-MP Forums Archive
Water - 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: Water (/showthread.php?tid=617510)



Water - MerryDeer - 22.09.2016

Hi,

How to know water z? because i found some place where water not start from 0.0 coordinate, like in desert start from ~40


Re: Water - Threshold - 22.09.2016

Dunno, what have you tried so far...?


Re: Water - AbyssMorgan - 22.09.2016

Water level is equal to 0.0 the exception of the water tank.


Re: Water - MerryDeer - 22.09.2016

Try

-765.9584, 2139.6008, 41.1557


Re: Water - AbyssMorgan - 22.09.2016

It is a water tank.


Re: Water - MerryDeer - 22.09.2016

Hm.. So how to know if i have X,Y calculate that Z coordinate?


Re: Water - AbyssMorgan - 22.09.2016

Best for this will be ColAndreas plugin.
https://sampforum.blast.hk/showthread.php?tid=586068

PHP код:
CA_FindZ_For2DCoord(Float:xFloat:y, &Float:z); 



Re: Water - MerryDeer - 22.09.2016

Maybe yes, but it's too much for my just for simple thing.


Re: Water - Vince - 22.09.2016

All oceans are at 0.0 however there are swimming pools that are higher (in the hills in Los Santos, amongst others) and of course the reservoir behind the dam.

I made this script a while ago after another user asked a similar question but I don't think I've released it publicly just yet. Data has been extracted directly from water.dat. It also creates blue gang zones everywhere a water plane exists but that is just for testing and verifying and they can obviously be removed.


Re: Water - MerryDeer - 22.09.2016

So minz or maxz i can use for z coordinate?