OnPlayerVanish
Usage
- No return behavior
Example Autogenerated
csharp
private void OnPlayerVanish( BasePlayer basePlayer )
{
Puts( "OnPlayerVanish works!" );
}
Location
- ConVar.Debugging::invis(ConsoleSystem/Arg arg)
csharp
//---
expr_5D.SetHeld(false);
}
basePlayer.DisablePlayerCollider();
Rust.Ai.SimpleAIMemory.AddIgnorePlayer(basePlayer);
BaseEntity.Query.Server.RemovePlayer(basePlayer);
Interface.CallHook("OnPlayerVanish", basePlayer);
if (!Global.Runner.IsInvoking(new Action(Debugging.TickInvis)))
{
Global.Runner.InvokeRepeating(new Action(Debugging.TickInvis), 0f, 0f);
}
}
//---