[Include] OnPlayerUpdate by state
#3

Quote:
Originally Posted by xkirill
Посмотреть сообщение
Isn't using OnPlayerUpdate callback easier than using a specific player update callback ?
Depends: if you have some pieces of code that should be executed only when the player is in a certain state, you can have your script better organized if you have these callbacks. For example, if you have a piece of code that bans a player if he uses a jetpack, you better put it in OnPlayerUpdateOnFoot because he won't be using one while driving or being a passenger.
Reply


Messages In This Thread
OnPlayerUpdate by state - by Gryphus One - 13.08.2012, 17:12
Re: OnPlayerUpdate by state - by Kaperstone - 13.08.2012, 20:09
Respuesta: Re: OnPlayerUpdate by state - by Gryphus One - 13.08.2012, 20:15
Re: Respuesta: Re: OnPlayerUpdate by state - by Kaperstone - 13.08.2012, 20:36
Re: OnPlayerUpdate by state - by Vince - 13.08.2012, 20:52
Respuesta: Re: OnPlayerUpdate by state - by Gryphus One - 13.08.2012, 20:58
Re: OnPlayerUpdate by state - by wups - 13.08.2012, 21:09
Respuesta: Re: OnPlayerUpdate by state - by Gryphus One - 13.08.2012, 21:14
Respuesta: Re: OnPlayerUpdate by state - by Gryphus One - 14.08.2012, 14:22

Forum Jump:


Users browsing this thread: 1 Guest(s)