OnStashOcclude
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private object OnStashOcclude( StashContainer instance )
{
Puts( "OnStashOcclude works!" );
return null;
}Location
- StashContainer::DoOccludedCheck()
csharp
public void DoOccludedCheck()
{
if (Physics.SphereCast(new Ray(base.transform.position + Vector3.up * 5f, Vector3.down), 0.25f, 5f, 2097152) && Interface.CallHook("OnStashOcclude", this) == null)
{
DropItems();
Kill();
}
}