OnDigitalClockAlarmsSet
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnDigitalClockAlarmsSet( DigitalClock instance, DigitalClockMessage digitalClockMessage )
{
Puts( "OnDigitalClockAlarmsSet works!" );
}
Location
- DigitalClock::RPC_SetAlarms(BaseEntity/RPCMessage msg)
csharp
//---
if (!this.CanPlayerAdmin(msg.player))
{
return;
}
DigitalClockMessage digitalClockMessage = DigitalClockMessage.Deserialize(msg.read);
if (Interface.CallHook("OnDigitalClockAlarmsSet", this, digitalClockMessage) != null)
{
return;
}
List<DigitalClockAlarm> arg_3C_0 = digitalClockMessage.alarms;
this.alarms.Clear();
//---