Skip to content

OnCrateLanded

Usage

  • No return behavior

Example Autogenerated

csharp
private void OnCrateLanded( HackableLockedCrate instance )
{
    Puts( "OnCrateLanded works!" );
}

Location

  • HackableLockedCrate::LandCheck()
csharp
//---
	RaycastHit raycastHit;
	if (Physics.Raycast(new Ray(base.transform.position + Vector3.up * 0.5f, Vector3.down), out raycastHit, 1f, 1084293377))
	{
		Effect.server.Run(this.landEffect.resourcePath, raycastHit.point, Vector3.up, null, false, null, 0, Effect.Type.Generic);
		this.hasLanded = true;
		Interface.CallHook("OnCrateLanded", this);
		base.CancelInvoke(new Action(this.LandCheck));
	}
}

Released under the MIT License.