public override void Init(ArrestSuspectSituation parent) { if (base.Parent.SimToArrest != null) { SituationSocial.Definition i = new SituationSocial.Definition("Policeman Express Disappointment", new string[0], null, false); InteractionInstance instance = base.ForceSituationSpecificInteraction(parent.SimToArrest, parent.Cop, i, null, new Callback(this.ArrestFinished), new Callback(this.ArrestFailure), InteractionPriorityLevel.High); if (instance != null) { instance.CancellableByPlayer = false; } } }
public override void Init(SimArrestSituationEx parent) { if (parent.SimToArrest.LotCurrent != parent.Lot) { if (parent.SimToArrest.Parent == Parent.CopCar) { OnArrestFinished(parent.Cop, 1); } else { Exit(); } } ActiveTopic.AddToSim(parent.Cop, "Policeman Arrest Burglar", null); RequestWalkStyle(parent.Cop, Sim.WalkStyle.Run); SituationSocial.Definition i = new SituationSocial.Definition("Policeman Arrest Burglar", new string[0x0], null, false); ForceSituationSpecificInteraction(parent.SimToArrest, parent.Cop, i, null, OnArrested, OnArrestFailed); }