Skip to content

OnStashOcclude

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnStashOcclude( StashContainer instance )
{
    Puts( "OnStashOcclude works!" );
}

Location

  • StashContainer::DoOccludedCheck()
csharp
public void DoOccludedCheck()
{
	if (Physics.SphereCast(new Ray(base.transform.position + Vector3.up * 5f, Vector3.down), 0.25f, 5f, 2097152))
	{
		if (Interface.CallHook("OnStashOcclude", this) != null)
		{
			return;
		}
		base.DropItems(null);
		base.Kill(BaseNetworkable.DestroyMode.None);
//---

Released under the MIT License.