Skip to content

OnApartmentRoomUpgraded

Usage

  • No return behavior

Example Autogenerated

csharp
private void OnApartmentRoomUpgraded( ApartmentRoom apartmentRoom, BasePlayer player, ApartmentSize size, ApartmentBuilding instance )
{
    Puts( "OnApartmentRoomUpgraded works!" );
}

Location

  • ApartmentBuilding::TryUpgradeRoom(BasePlayer player, ApartmentSize size)
csharp
//---
		NotifyRoomChanged(player.userID);
		if (player.Connection != null)
		{
			player.ChatMessage("You have upgraded to room " + apartmentRoom.RoomNumber);
		}
		Interface.CallHook("OnApartmentRoomUpgraded", apartmentRoom, player, size, this);
	}
}

Released under the MIT License.