protected virtual void OnTeleporting(TeleportingEventArgs e) { if (Teleporting != null) { Teleporting(this, e); } }
public void Teleport(string sim, Vector3 coordinates) { if (!loggedIn) { return; } if (teleporting) { return; } TeleportingEventArgs ea = new TeleportingEventArgs(sim, coordinates); OnTeleporting(ea); if (ea.Cancel) { return; } teleporting = true; client.Self.Teleport(sim, coordinates); }