SetTimer or onplayerupdate?.
#1

Hi, so I try to script that if a vehicle's health reach < 300 then the engine will stop, but my question is, to create that I must use a timer with 1 milisecond timer or onplayerupdate? thanks in advance.
Reply
#2

I suggest you to use 1000ms = 1 second or it will cause lag on server.
Reply
#3

OnPlayerUpdate is called more than 100 times per second, a 1 or half second timer in your case is much efecient.
Reply
#4

Use a timer and a function bud. OnPlayerUdate is called to many times.
Reply
#5

Alright, thanks for the help guys, I'm convinced now .
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)