Aura.Channel.Network.Sending.Send.UseMotion C# (CSharp) Method

UseMotion() public static method

Broadcasts UseMotion and CancelMotion (if cancel is true) in creature's region.
public static UseMotion ( Creature creature, int category, int type, bool loop = false, bool cancel = false ) : void
creature Creature
category int
type int
loop bool
cancel bool
return void
		public static void UseMotion(Creature creature, int category, int type, bool loop = false, bool cancel = false)
		{
			if (cancel)
				CancelMotion(creature);

			// Do motion
			var packet = new Packet(Op.UseMotion, creature.EntityId);
			packet.PutInt(category);
			packet.PutInt(type);
			packet.PutByte(loop);
			packet.PutShort(0);

			// XXX: Why is it region and not range again...? Maybe so you see
			//   the motion when coming into range? ... does that work?

			creature.Region.Broadcast(packet, creature);
		}
Send