Esempio n. 1
0
        public void Remove()
        {
            API.RemoveScriptFire(FlameID);

            API.StopFireInRange(Position.X, Position.Y, Position.Z, 20);
            FlamePTFX.RemovePTFX();
            Active = false;
        }
Esempio n. 2
0
        public void Remove()
        {
            Function.Call(Hash.REMOVE_SCRIPT_FIRE, FlameID);

            Function.Call(Hash.STOP_FIRE_IN_RANGE, Position.X, Position.Y, Position.Z, 20);
            FlamePTFX.RemovePTFX();
            Active = false;
            //Debug.WriteLine("Removed flame with ID: " + FlameID);
        }
Esempio n. 3
0
        public void Remove(bool TriggerFireOutEvent)
        {
            foreach (Flame f in this.Flames)
            {
                f.Remove();
            }
            this.Flames.Clear();
            SmokePTFX.RemovePTFX();
            InteriorSmokePTFX.RemovePTFX();
            if (TriggerFireOutEvent)
            {
                TriggerServerEvent("FireScript:FirePutOut", Position.X, Position.Y, Position.Z);
            }
            Active = false;

            //FireScript.WriteDebug("Removed fire!");
        }