cronomx Posted May 4, 2010 Share Posted May 4, 2010 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
Gamesnert Posted May 4, 2010 Share Posted May 4, 2010 Not yet. I'll try to add a few functions for it in a moment. Planning on adding these: setPickupAmmosetPickupAmount 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
cronomx Posted May 5, 2010 Author Share Posted May 5, 2010 Oh thanks man, sorry about the trouble, I got biased by the function name Thanks for the answer man Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now