ITEM.Ammo
The ammo item base. Gives a set amount of one ammo type on use.
- SharedITEM:onDestroy(ply)Source ☍
-
onDestroyhook/override for this item base.Parameters
- plyPlayer
- SharedITEM:onDrop(ply, pos)Source ☍
-
onDrophook/override for this item base.Parameters
- SharedITEM:onGive(ply, pos)Source ☍
-
onGivehook/override for this item base.Parameters
- SharedITEM:onUse(ply)Source ☍
-
onUsehook/override for this item base.Parameters
- plyPlayer
- SharedITEM:SetAmmo(ammoType, ammoValue) → ITEM.AmmoSource ☍
-
Set the type and value of ammo used. Calling this also sets the category.
Parameters
- ammoTypestringAmmo Class to give.
- ammoValuenumberAmount of ammo to give.
Returns
- ITEM.Ammo