Reducing my lives doesn't work by function or custom event
So when an AI gets to my target location, it calls a function that is on my HUD, I also tried using a custom event - the event and function both says to take 1 life off in my HUD.
In my HUD I made a function:
In my HUD graph I made a custom event:
And I guess this is where it's going wrong; in my targetlocation is where I trigger both the event and function, maybe I am not doing it right ?
asked Jun 30 '15 at 08:36 AM in Blueprint Scripting
where is your Lives var stored? If this is per player variable, then i recommend store it in player controller bluprint, since there should be only 1 player controller per player. Then in your HUD function "Remove a Life" you can do this:
1- "I will remove a life" gets printed? 2- HUD ref is valid?
answered Jun 30 '15 at 09:01 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here