danifer Posted January 23, 2008 Posted January 23, 2008 I have created a health pickup with a script. I can see the pickup at specified location, but when I take it I gain no health. Do I have to handle the onPickupHit / onPickupUse and change the health explicitly ? Or is it a bug ?
Jumba' Posted January 23, 2008 Posted January 23, 2008 I have created a health pickup with a script. I can see the pickup at specified location, but when I take it I gain no health.Do I have to handle the onPickupHit / onPickupUse and change the health explicitly ? Or is it a bug ? When you create an pickup i think its just "there" to be seen, you have to use a function to let it set the health.
danifer Posted January 23, 2008 Author Posted January 23, 2008 Thanks Jumba. I guess I will have to hook one of those events and set the health with the setElementHealth function.
danifer Posted January 25, 2008 Author Posted January 25, 2008 the setElementHealth() was not needed. I had some funky arguments to the createPickup() function that caused this erra.
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