mikeh
New Member
Posts: 1
Posts: 1
|
Post by mikeh on Apr 22, 2014 21:07:43 GMT
Hey All,
I am working on a game, and trying to get all the World Variables working together. Everything is hooked up correctly in that when an enemy bullet hits my player, the Health World Variable is updated.
What isn't happening, is that the when the World Variable for Health reaches 0, my Player is not being destroyed.
Can you provide a quick bullet point list of what to have set and where to get this functioning correctly?
If more information is needed, let me know.
Thanks for the help, and the great plugin!
Mike H
|
|
|
Post by DarkTonic Dev on Apr 22, 2014 23:09:16 GMT
Hi Mikeh,
I think all you need to do is to put a Killable script on your Player (what's the genre of your game?) and for the Hit Points section, change the blue dropdown from Self to Variable. Then choose the Health variable.
So the player will always spawn with Hit Points equal to the Health World Variable, and he will die when Hit Points <= 0 like normal. Will that work for you?
Set up like this, it won't actually ever modify the Health variable and it only reads the World Variable when it spawns.
|
|