GiveItem sets velocity.
Give every player 10 confetti on greet for hype.
This commit is contained in:
parent
d71aacc58d
commit
f21adbfc42
2 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue