Skip to content

OnPlayerInput

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnPlayerInput( BasePlayer instance, InputState serverInput )
{
    Puts( "OnPlayerInput works!" );
}

Location

  • BasePlayer::OnReceiveTick(PlayerTick msg, bool wasPlayerStalled)
csharp
//---
	}
	if (this.serverInput.current.buttons != this.serverInput.previous.buttons)
	{
		this.ResetInputIdleTime();
	}
	if (Interface.CallHook("OnPlayerInput", this, this.serverInput) != null)
	{
		return;
	}
	if (this.IsReceivingSnapshot)
	{
//---

Released under the MIT License.