SetPos() public method

public SetPos ( ushort x, ushort y, ushort z, byte rotx, byte roty ) : void
x ushort
y ushort
z ushort
rotx byte
roty byte
return void
Esempio n. 1
0
        public override void Use(Player p, string message)
        {
            if (message == "")
            {
                Help(p); return;
            }
            PlayerBot who = PlayerBot.Find(message);

            if (who == null)
            {
                Player.SendMessage(p, "There is no bot " + message + "!"); return;
            }
            if (p.level != who.level)
            {
                Player.SendMessage(p, who.name + " is in a different level."); return;
            }
            who.SetPos(p.pos[0], p.pos[1], p.pos[2], p.rot[0], 0);
            //who.SendMessage("You were summoned by " + p.color + p.name + "&e.");
        }