OnSleepingBagDestroyed
Usage
- No return behavior
Example Autogenerated
csharp
private void OnSleepingBagDestroyed( SleepingBag sleepingBag2, ulong userID )
{
Puts( "OnSleepingBagDestroyed works!" );
}
Location
- SleepingBag::DestroyBag(ulong userID, NetworkableId sleepingBag)
csharp
//---
sleepingBag2.SendNetworkUpdate(BasePlayer.NetworkQueue.Update);
BasePlayer basePlayer = BasePlayer.FindByID(userID);
if (basePlayer != null)
{
basePlayer.SendRespawnOptions();
Interface.CallHook("OnSleepingBagDestroyed", sleepingBag2, userID);
Facepunch.Rust.Analytics.Azure.OnBagUnclaimed(basePlayer, sleepingBag2);
}
return true;
}