Skip to content

OnRemoveDying

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private object OnRemoveDying( GrowableEntity instance, BasePlayer receiver )
{
    Puts( "OnRemoveDying works!" );
    return null;
}

Location

  • GrowableEntity::RemoveDying(BasePlayer receiver)
csharp
public void RemoveDying(BasePlayer receiver)
{
	if (State == PlantProperties.State.Dying && !(Properties.removeDyingItem == null) && Interface.CallHook("OnRemoveDying", this, receiver) == null)
	{
		if (Properties.removeDyingEffect.isValid)
		{
			Effect.server.Run(Properties.removeDyingEffect.resourcePath, base.transform.position, Vector3.up);
		}
//---

Released under the MIT License.