Jump to content

Pickup help


Recommended Posts

Why doesn't this work?

function pickup(source) 
    local x,y,z = getElementPosition(source) 
    createPickup(x + 5, y, z, 0, 1240) 
addCommandHandler( "heal", pickup ) 


No errors in console or in debugscript 3...

Link to post

you have placed wrong number in function createPickup.

function pickup ( player ) 
    local x,y,z = getElementPosition ( player ) 
    createPickup ( x + 5, y, z, 0, 100 ) 
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 post

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...