CanAssignBed
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void CanAssignBed( BasePlayer player, SleepingBag instance, ulong num )
{
Puts( "CanAssignBed works!" );
}
Location
- SleepingBag::AssignToFriend(BaseEntity/RPCMessage msg)
csharp
//---
ulong num = msg.read.UInt64();
if (num == 0uL)
{
return;
}
if (Interface.CallHook("CanAssignBed", msg.player, this, num) != null)
{
return;
}
if (Server.max_sleeping_bags > 0)
{
//---