Server.Effects.SendMovingEffect C# (CSharp) Méthode

SendMovingEffect() public static méthode

public static SendMovingEffect ( IEntity from, IEntity to, int itemID, int speed, int duration, bool fixedDirection, bool explodes ) : void
from IEntity
to IEntity
itemID int
speed int
duration int
fixedDirection bool
explodes bool
Résultat void
		public static void SendMovingEffect( IEntity from, IEntity to, int itemID, int speed, int duration, bool fixedDirection, bool explodes )
		{
			SendMovingEffect( from, to, itemID, speed, duration, fixedDirection, explodes, 0, 0 );
		}

Same methods

Effects::SendMovingEffect ( IEntity from, IEntity to, int itemID, int speed, int duration, bool fixedDirection, bool explodes, int hue, int renderMode ) : void

Usage Example

        public static void Vanish(Mobile mobile)
        {
            if (mobile == null)
            {
                return;
            }

            mobile.PlaySound(0x657);

            int projectiles   = 6;
            int particleSpeed = 4;

            for (int a = 0; a < projectiles; a++)
            {
                Point3D newLocation = new Point3D(mobile.X + Utility.RandomList(-5, -4, -3, -2, -1, 1, 2, 3, 4, 5), mobile.Y + Utility.RandomList(-5, -4, -3, -2, -1, 1, 2, 3, 4, 5), mobile.Z);
                SpellHelper.AdjustField(ref newLocation, mobile.Map, 12, false);

                IEntity effectStartLocation = new Entity(Serial.Zero, new Point3D(mobile.X, mobile.Y, mobile.Z + 5), mobile.Map);
                IEntity effectEndLocation   = new Entity(Serial.Zero, new Point3D(newLocation.X, newLocation.Y, newLocation.Z + 5), mobile.Map);

                Effects.SendMovingEffect(effectStartLocation, effectEndLocation, Utility.RandomList(0x3728), particleSpeed, 0, false, false, 0, 0);
            }
        }
All Usage Examples Of Server.Effects::SendMovingEffect