Posts: 7,801
Threads: 187
Joined: Feb 2010
Reputation:
0
Could I use the MapAndreas plugin to determine the closest point of land? For example, say a vehicle goes into the water and instead of re-spawning it, I can determine the closest area of land in relation to the vehicle.
If this is possible, HOW?
Posts: 949
Threads: 153
Joined: Jan 2012
Reputation:
0
You could do some testing, but.. I think your vehicle would be below the Z coordinate 0.0 (sea level), so.. Just detect if they're not moving for a period of time (a couple second timer would be sufficient I suppose) and below sea level. I'm sure you COULD run into bugs doing this, but that's the only solution that comes to mind.
Posts: 526
Threads: 59
Joined: Feb 2011
Reputation:
0
I think it is impossible.
Maybe you could save a lot of positions around places near water, then if the vehicles is in water you would check if the player is in range of a point and set the vehicle's location to that point.
well detect if the vehicle felt on water, send it to something like -100 z coordinate on its location and it will respawn in land.
eg:
vehicle felt on water in 0 , 0 ,0 (i know that this coordinate is not water lol)
set the vehicle pos to 0 , 0 , -50(or more) and it will respawn on land.
yes.
in my stunt server i have speed boost
when i fall in water and i go a bit below the sea level i get respawned in land near the sea.
(edit: i dunno if it will work with empty cars)
when u fall in a gta sa map bug u respawn in the map near the place you felt.