OnToggleVendingBroadcast
Usage
- No return behavior
Example Autogenerated
csharp
private void OnToggleVendingBroadcast( VendingMachine instance, BasePlayer player )
{
Puts( "OnToggleVendingBroadcast works!" );
}
Location
- VendingMachine::RPC_Broadcast(BaseEntity/RPCMessage msg)
csharp
//---
BasePlayer player = msg.player;
bool b = msg.read.Bit();
if (this.CanPlayerAdmin(player))
{
base.SetFlag(BaseEntity.Flags.Reserved4, b, false, true);
Interface.CallHook("OnToggleVendingBroadcast", this, player);
this.UpdateMapMarker(false);
}
}