Skip to content

OnBedMade ​

Usage ​

  • No return behavior

Example Autogenerated ​

csharp
private void OnBedMade( SleepingBag instance, BasePlayer player )
{
    Puts( "OnBedMade works!" );
}

Location ​

  • SleepingBag::RPC_MakeBed(BaseEntity/RPCMessage msg)
csharp
//---
	ulong num = this.deployerUserID;
	this.deployerUserID = msg.player.userID;
	SleepingBag.OnBagChangedOwnership(this, num);
	this.NotifyPlayer(num);
	this.NotifyPlayer(this.deployerUserID);
	Interface.CallHook("OnBedMade", this, msg.player);
	base.SendNetworkUpdate(BasePlayer.NetworkQueue.Update);
}

Released under the MIT License.