Skip to content

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
//---
			}
			BasePlayer basePlayer = BasePlayer.FindByID(userID);
			if (basePlayer != null)
			{
				basePlayer.SendRespawnOptions();
				Interface.CallHook("OnSleepingBagDestroyed", sleepingBag2, userID);
				Facepunch.Rust.Analytics.Azure.OnBagUnclaimed(basePlayer, sleepingBag2);
			}
			result = true;
		}
	}
//---

Released under the MIT License.