OnBroadcastCommand
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnBroadcastCommand( string strCommand, Object[] args )
{
Puts( "OnBroadcastCommand works!" );
}
Location
- ConsoleNetwork::BroadcastToAllClients(string strCommand, System.Object[] args)
csharp
//---
{
if (!Net.sv.IsConnected())
{
return;
}
if (Interface.CallHook("OnBroadcastCommand", strCommand, args) != null)
{
return;
}
NetWrite expr_27 = Net.sv.StartWrite();
expr_27.PacketID(Message.Type.ConsoleCommand);
//---