OnPlayerUpdate
#1

Yozor, what does onplayerupdate do. I mean, when does a player update
Reply
#2

Position, weapon, text, camera move everything you can imagine
Reply
#3

OnPlayerUpdate gets called 16 times a second or so. Dont over-use it with player loops etc, otherwise it might be lagging your server.
Reply
#4

So its basicly a function that will get triggered every milisecond?
Reply
#5

Updated for example, health, armor, position, rotation, vehicles (mods, color, animation), the client will send information to the server and the server will call the OnPlayerUpdate.
Reply
#6

Quote:
Originally Posted by ******
Посмотреть сообщение
16 times PER PLAYER, not 16 times.
16 times per player, per second right?
Reply
#7

It won't be called 16 times a second when standing still though - only around 4 or 5 times.
Reply
#8

Good place to an anti hack system i guess.. Also for saving.
Hope that i am not saying shit. Also, used for Speedo. At least i used.
Reply
#9

Not for saving, will be lagging. I am placing my weaponhack here
Reply
#10

OnPlayerUpdate should only be used for small things that NEED to be called frequently i.e. weapon detection or a speedo^.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)