public override void Process() { base.Process(); if (!hearthAttackCreated && Game.LocalPlayer.Character.DistanceTo(hearthAttackPed.Position) < 30f) { hearthAttackCreated = true; GameFiber.StartNew(delegate { while (true) { GameFiber.Yield(); if (EMSFunctions.DidEMSRevivePed(hearthAttackPed) != null) { break; } } }); } if (hearthAttackCreated) { End(); } }
public static bool HasBeenTreated(Ped p) { return(EMSFunctions.DidEMSRevivePed(p) != null); }