Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local AmmoUse = "Assassin Star"
- local AmmoMax = 300
- local AmmoBp = "Blue Backpack"
- ----------------------
- registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
- function onWalkerSelectLabel(labelName)
- if (labelName == "AS") then
- Self.ItemCount(Item.GetID(AmmoUse) < AmmoMax)
- AmmoToWithdraw = (AmmoMax - Self.ItemCount(AmmoUse))
- Self.WithdrawItems(0, {Item.GetID(AmmoUse), AmmoBp, AmmoToWithdraw}) -- 0, Is the spot of bp on Depot.
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement