[opinion]OnPlayerUpdate
#1

I need someones opinion for callback OnPlayerUpdate..

i have some jobs made unique and i put it on this call back for thejob the for(new i=0; i<100+[more than 100]; i++) and what i need from someone is:

is bether to make a timer that is called every 300-500ms or should i leave the "for" in the OnPlayerUpdate callback?
Reply
#2

Yeah that doesnt need to be in OnPlayerUpdate, and even 300ms might be too frequent.
Reply
#3

It's up to 30 calls a second.

It's better to use a timer, use OnPlayerUpdate only with not "heavy" code.
Reply
#4

kaisersouse what do you thing what interval should i put?

The yob is with a harverster and i must check the position of the harvester to destroy properly the object of the canola that i am harvesting it on the farm field!

Konstantinos because of that I think this is very havy cod I am asking here for someones opinion that has more experience with coding..

Thanks people, sorry for my bad english :/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)