Exemple #1
0
            /// <summary>
            /// Remove the script fire.
            /// </summary>
            public void Remove()
            {
                if (removed)
                {
                    return;
                }

                WorldExtension.RemoveScriptFire(this.handle);
                removed = true;
            }
Exemple #2
0
            /// <summary>
            /// Move the script fire to the pedestrian.
            /// </summary>
            public void MoveToPed()
            {
                if (removed)
                {
                    return;
                }

                if (ped.IsOnFire || !ped.IsAlive)
                {
                    this.Remove();
                    return;
                }

                WorldExtension.RemoveScriptFire(this.handle);
                this.handle = WorldExtension.StartScriptFire(ped.Position, 5, true);
            }