Page 1 of 1

Giving items

Posted: Sat Apr 28, 2018 3:47 am
by FRU1TSALAD
Is there a command that allows items such as pistols to be given to players? I am making a map that requires this

Re: Giving items

Posted: Sat Apr 28, 2018 11:36 am
by Gurt
Use the IPlayer.GiveWeaponItem(WeaponItem weaponItemToGive ) function. See the ScriptAPI for more details.

IPlayer plr = ...;
plr.GiveWeaponItem(WeaponItem.PISTOL);