OnApartmentRoomPurchased
Usage
- No return behavior
Example Autogenerated
csharp
private void OnApartmentRoomPurchased( ApartmentRoom apartmentRoom, BasePlayer player, ApartmentSize size, ApartmentBuilding instance )
{
Puts( "OnApartmentRoomPurchased works!" );
}Location
- ApartmentBuilding::PurchaseRoom(BasePlayer player, ApartmentSize size)
csharp
//---
GiveRoomToPlayer(player, apartmentRoom);
if (player.Connection != null)
{
player.ChatMessage("You have rented room " + apartmentRoom.RoomNumber);
}
Interface.CallHook("OnApartmentRoomPurchased", apartmentRoom, player, size, this);
}
}