OnSleepingBagDestroy
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private object OnSleepingBagDestroy( SleepingBag sleepingBag2, ulong userID )
{
Puts( "OnSleepingBagDestroy works!" );
return null;
}Location
- SleepingBag::DestroyBag(ulong userID, NetworkableId sleepingBag)
csharp
//---
{
result = false;
}
else
{
if (Interface.CallHook("OnSleepingBagDestroy", sleepingBag2, userID) != null)
{
result = false;
/*Error near IL_0077: Could not find block for branch target IL_00e8*/;
}
RemoveBagForPlayer(sleepingBag2, sleepingBag2.deployerUserID);
//---