CanUseVending
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void CanUseVending( BasePlayer player, VendingMachine instance )
{
Puts( "CanUseVending works!" );
}
Location
- VendingMachine::CanOpenLootPanel(BasePlayer player, string panelName)
csharp
public override bool CanOpenLootPanel(BasePlayer player, string panelName)
{
object returnvar = Interface.CallHook("CanUseVending", player, this);
if (returnvar is bool)
{
return (bool)returnvar;
}
return panelName == this.customerPanel || (base.CanOpenLootPanel(player, panelName) && this.CanPlayerAdmin(player));
//---