OnPlayerUnvanish
Usage
- No return behavior
Example Autogenerated
csharp
private void OnPlayerUnvanish( BasePlayer basePlayer )
{
Puts( "OnPlayerUnvanish works!" );
}
Location
- ConVar.Debugging::invis(ConsoleSystem/Arg arg)
csharp
//---
basePlayer.syncPosition = true;
basePlayer.EnablePlayerCollider();
Rust.Ai.SimpleAIMemory.RemoveIgnorePlayer(basePlayer);
BaseEntity.Query.Server.RemovePlayer(basePlayer);
BaseEntity.Query.Server.AddPlayer(basePlayer);
Interface.CallHook("OnPlayerUnvanish", basePlayer);
if (Debugging.invisiblePlayers.Count == 0)
{
Global.Runner.CancelInvoke(new Action(Debugging.TickInvis));
}
}
//---