OnRentableShopOpened
Usage
- No return behavior
Example Autogenerated
csharp
private void OnRentableShopOpened( RentableShop instance, BasePlayer byPlayer )
{
Puts( "OnRentableShopOpened works!" );
}Location
- RentableShop::OnShopOpened(BasePlayer byPlayer)
csharp
//---
byPlayer.inventory.containerMain.UseAmount(ScrapDef, ref amount);
byPlayer.inventory.containerBelt.UseAmount(ScrapDef, ref amount);
byPlayer.inventory.containerWear.UseAmount(ScrapDef, ref amount);
int amount2 = Mathf.RoundToInt((float)ScrapPerHourRent * 12f * CurrentRentMultiplier);
byPlayer.inventory.MoveItemsIntoContainer(ScrapDef, amount2, invisibleVendingMachine.inventory);
Interface.CallHook("OnRentableShopOpened", this, byPlayer);
}