OnCounterModeToggle
Usage
- No return behavior
Example Autogenerated
csharp
private void OnCounterModeToggle( )
{
Puts( "OnCounterModeToggle works!" );
}
Location
- PowerCounter::ToggleDisplayMode(BaseEntity/RPCMessage msg)
csharp
[BaseEntity.RPC_Server, BaseEntity.RPC_Server.IsVisible(3f)]
public void ToggleDisplayMode(BaseEntity.RPCMessage msg)
{
bool OxideGen_0 = msg.read.Bit();
if (Interface.CallHook("OnCounterModeToggle", this, msg.player, OxideGen_0) != null)
{
return;
}
if (!msg.player.CanBuild())
{
//---