Skip to content

OnSleepingBagValidCheck

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnSleepingBagValidCheck( SleepingBag instance, ulong playerID, bool ignoreTimers )
{
    Puts( "OnSleepingBagValidCheck works!" );
}

Location

  • SleepingBag::ValidForPlayer(ulong playerID, bool ignoreTimers)
csharp
public virtual bool ValidForPlayer(ulong playerID, bool ignoreTimers)
{
	object returnvar = Interface.CallHook("OnSleepingBagValidCheck", this, playerID, ignoreTimers);
	if (returnvar is bool)
	{
		return (bool)returnvar;
	}
	return this.deployerUserID == playerID && (ignoreTimers || this.unlockTime < Time.realtimeSinceStartup);
//---

Released under the MIT License.