Vehicle In Water
#8

That is a good idea but what if the vehicle is airborne, on a hill etc then this won't work.

There is one other way but it's a bit of work.

Use incognito's streamer and these functions

Код:
native CreateDynamicPolygon(Float:points[], Float:minz = -FLOAT_INFINITY, Float:maxz = FLOAT_INFINITY, maxpoints = sizeof points, worldid = -1, interiorid = -1, playerid = -1);

native IsPointInDynamicArea(areaid, Float:x, Float:y, Float:z);
Define your water areas then check to see if a vehicle's position is in your water areas.
Reply


Messages In This Thread
Vehicle In Water - by Abreezy - 18.04.2013, 18:47
Re: Vehicle In Water - by MP2 - 18.04.2013, 19:00
Re: Vehicle In Water - by Pottus - 18.04.2013, 19:04
Re: Vehicle In Water - by MP2 - 18.04.2013, 19:06
Re: Vehicle In Water - by Abreezy - 18.04.2013, 21:52
Re: Vehicle In Water - by Pottus - 18.04.2013, 22:21
Re: Vehicle In Water - by Azazelo - 18.04.2013, 22:29
Re: Vehicle In Water - by Pottus - 18.04.2013, 22:33
Re: Vehicle In Water - by Azazelo - 18.04.2013, 22:39

Forum Jump:


Users browsing this thread: 2 Guest(s)