Posts: 59
Threads: 7
Joined: Aug 2010
Reputation:
0
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.
I suggest you to use 1000ms = 1 second or it will cause lag on server.
Posts: 296
Threads: 55
Joined: Jan 2010
Reputation:
0
OnPlayerUpdate is called more than 100 times per second, a 1 or half second timer in your case is much efecient.
Posts: 1,008
Threads: 101
Joined: Apr 2008
Reputation:
0
Use a timer and a function bud. OnPlayerUdate is called to many times.