How to detect if car felt in water?
#1

Well, title says it all, i just don't get it how you guys check this, by updating location and checking is it below water level or what? I am making derby fs and i don't get this. lol :P
Reply
#2

Most of the time water level Z-coordinate is 0.0 or lower. They may also somehow check the angular Z-velocity of the vehicle and if it's negative.
Reply
#3

Is that the only way? I mean, don't wanna make the timer with so low time. too much for the script i guess
Reply
#4

As soon as the vehicle enters water OnVehicleDeath is called, even if the player manages to drive or teleport out.
Reply
#5

Quote:
Originally Posted by Vince
Посмотреть сообщение
As soon as the vehicle enters water OnVehicleDeath is called, even if the player manages to drive or teleport out.
I love you, + rep'ed <3
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)