Prevent a vehicle from exploding?
#10

Quote:
Originally Posted by playbox12
View Post
Why would you use a timer, when you can use a native function called 'OnPlayerUpdate'
Also the only thing yours does it setting the health back to 300 and like 'Mike Garber' said. When a vehicle is on fire there is no going back. And you set it back to 300 exactly at the moment it catches fire. It WON'T work the vehicle will just explode..
Oh, really? Did you even try?

OnPlayerUpdate is called 32 times in a second, there is no need too much presicion, also, a vehicle explodes in around 8 seconds, so you can actually set the timer to 2000 ms.

My code works fine.
Reply


Messages In This Thread
Prevent a vehicle from exploding? - by Kyle_Olsen - 11.11.2010, 12:10
Re: Prevent a vehicle from exploding? - by Celson - 11.11.2010, 12:14
Re: Prevent a vehicle from exploding? - by Kyle_Olsen - 11.11.2010, 12:18
Re: Prevent a vehicle from exploding? - by Flyfishes - 11.11.2010, 12:31
Re: Prevent a vehicle from exploding? - by Kyle_Olsen - 11.11.2010, 12:49
Re: Prevent a vehicle from exploding? - by Mike Garber - 11.11.2010, 13:31
Re: Prevent a vehicle from exploding? - by playbox12 - 11.11.2010, 14:38
Re: Prevent a vehicle from exploding? - by The_Moddler - 11.11.2010, 14:45
Re: Prevent a vehicle from exploding? - by playbox12 - 11.11.2010, 14:59
Re: Prevent a vehicle from exploding? - by The_Moddler - 11.11.2010, 15:15

Forum Jump:


Users browsing this thread: 3 Guest(s)