public TimedEvent ShieldTimer(int timeoutDelay, Dictionary <string, object> args) { TimedEvent timedEvent = new TimedEvent(timeoutDelay); timedEvent.Args = args; timedEvent.OnFire += CallBack; return(timedEvent); }
public void CallBack(TimedEvent e) { var dict = e.Args; e.Kill(); Fougerite.Player pl = (Fougerite.Player)dict["inshield"]; onshield.Remove(pl.UID); pl.MessageFrom("SpawnShield", DeactiveMessage); if (RustBusterSupport) { pl.SendConsoleMessage("shieldgotalk2"); } }