Skip to content

OnPlayerColliderEnable

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnPlayerColliderEnable( BasePlayer instance, CapsuleCollider playerCollider )
{
    Puts( "OnPlayerColliderEnable works!" );
}

Location

  • BasePlayer::EnablePlayerCollider()
csharp
//---
{
	if (this.playerCollider.enabled)
	{
		return;
	}
	if (Interface.CallHook("OnPlayerColliderEnable", this, this.playerCollider) != null)
	{
		return;
	}
	this.RefreshColliderSize(true);
	this.playerCollider.enabled = true;
//---

Released under the MIT License.