CanHideStash
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void CanHideStash( BasePlayer player, StashContainer instance )
{
Puts( "CanHideStash works!" );
}
Location
- StashContainer::RPC_HideStash(BaseEntity/RPCMessage rpc)
csharp
[BaseEntity.RPC_Server, BaseEntity.RPC_Server.IsVisible(3f)]
public void RPC_HideStash(BaseEntity.RPCMessage rpc)
{
if (Interface.CallHook("CanHideStash", rpc.player, this) != null)
{
return;
}
Facepunch.Rust.Analytics.Azure.OnStashHidden(rpc.player, this);
this.SetHidden(true);
//---