Jump to content

Pickup ammo


Recommended Posts

Is there a way to change the ammo amount of an already created pickup?

Something like a setPickupAmmo command?

Im trying to achieve this:

temp = createPickup(0,0,3.5,2,16,3000,50)
outputChatBox(tostring(getPickupAmmo(temp))) --This will output "50"
 
--DO SOMETHING HERE TO CHANGE THE AMMO TO 100--
 
outputChatBox(tostring(getPickupAmmo(temp))) --This will output "100"

The only thing I could do was to delete the pickup then create a new one, but is there a way to just do something like the code?

Link to comment

Not yet. I'll try to add a few functions for it in a moment.

Planning on adding these:

setPickupAmmo

setPickupAmount

setPickupWeapon

respawnPickup

If you miss any function, feel free to poke me with it.

EDIT: It seems like I was mistaken; setPickupType already does what you need.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...