OnSleepingBagDestroy
Usage
- No return behavior
Example Autogenerated
csharp
private void OnSleepingBagDestroy( )
{
Puts( "OnSleepingBagDestroy works!" );
}
Location
- SleepingBag::DestroyBag(ulong userID, NetworkableId sleepingBag)
csharp
//---
SleepingBag sleepingBag2 = SleepingBag.FindForPlayer(userID, true).FirstOrDefault((SleepingBag x) => x.net.ID == sleepingBag);
if (sleepingBag2 == null)
{
return false;
}
if (Interface.CallHook("OnSleepingBagDestroy", sleepingBag2, userID) != null)
{
return false;
}
SleepingBag.RemoveBagForPlayer(sleepingBag2, sleepingBag2.deployerUserID);
sleepingBag2.deployerUserID = 0uL;
//---