danifer Posted January 23, 2008 Share 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 ? Link to comment
Jumba' Posted January 23, 2008 Share 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. Link to comment
danifer Posted January 23, 2008 Author Share 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. Link to comment
danifer Posted January 25, 2008 Author Share Posted January 25, 2008 the setElementHealth() was not needed. I had some funky arguments to the createPickup() function that caused this erra. 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