niemi Posted March 27, 2009 Share Posted March 27, 2009 Why doesn't this work? function pickup(source) local x,y,z = getElementPosition(source) createPickup(x + 5, y, z, 0, 1240) end addCommandHandler( "heal", pickup ) ' No errors in console or in debugscript 3... Link to comment
DakiLLa Posted March 27, 2009 Share Posted March 27, 2009 you have placed wrong number in function createPickup. function pickup ( player ) local x,y,z = getElementPosition ( player ) createPickup ( x + 5, y, z, 0, 100 ) end addCommandHandler ( "heal", pickup ) if we take a look on a wiki... createPickup ( x, y, z, type, amount/weapon/model ) you should place an 'amount' of your health, if you have a HEALTH - type pickup, with max value - 100. And you have placed a model as i can see.. 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