CanSeeStash
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void CanSeeStash( BasePlayer instance, StashContainer Entity )
{
Puts( "CanSeeStash works!" );
}
Location
- BasePlayer::CheckStashRevealInvoke()
csharp
//---
else if (nearbyStash.Entity.IsHidden() && nearbyStash.Entity.PlayerInRange(this))
{
nearbyStash.LookingAtTime += StashContainer.PlayerDetectionTickRate;
if (nearbyStash.LookingAtTime >= nearbyStash.Entity.uncoverTime)
{
if (Interface.CallHook("CanSeeStash", this, nearbyStash.Entity) != null)
{
return;
}
nearbyStash.Entity.SetHidden(false);
Facepunch.Rust.Analytics.Azure.OnStashRevealed(this, nearbyStash.Entity);
//---