GiveItem sets velocity.

Give every player 10 confetti on greet for hype.
This commit is contained in:
Zack Piispanen 2013-09-30 19:45:25 -04:00
parent d71aacc58d
commit f21adbfc42
2 changed files with 5 additions and 0 deletions

View file

@ -1079,6 +1079,9 @@ namespace TShockAPI
player.Teleport(pos.X*16, pos.Y*16 + 48);
}}
Item i = new Item();
i.SetDefaults("Confetti Gun");
player.GiveItem(i.type, i.name, i.width, i.headSlot, 10);
args.Handled = true;
}