Skip to content

OnFreeableContainerReleased

Usage

  • No return behavior

Example Autogenerated

csharp
private void OnFreeableContainerReleased( FreeableLootContainer instance, BasePlayer ply )
{
    Puts( "OnFreeableContainerReleased works!" );
}

Location

  • FreeableLootContainer::Release(BasePlayer ply)
csharp
//---
		if (ply != null && !ply.IsNpc && ply.IsConnected && net != null)
		{
			ply.ProcessMissionEvent(BaseMission.MissionEventType.FREE_CRATE, net.ID, 1f);
			Facepunch.Rust.Analytics.Azure.OnFreeUnderwaterCrate(ply, this);
		}
		Interface.CallHook("OnFreeableContainerReleased", this, ply);
	}
}

Released under the MIT License.