How to create a floating progress bar set to Delay on an object?
Bit of a noob question here, but I hope someone can help me since I've spent most of the day looking at solutions which didn't help me.
I am trying to create a progress bar that appears above either the player character or object set to a delay (which is a variable called 'build time').
Currently, the player enters a collision box which enables input. Once the player has pressed the correct button, a delay timer is set off (build time). After the delay is finished, the building (in this case a barricade on a window) appears.
What I would like, is for a progress bar set to this delay or build time to appear above the character or object while they are 'building the barricade'.
I think my problem has to do with casting, which has always confused me as to what the object pin should be. Here is the graph on the progress bar that I have tried to get working so far.
If anyone could help me, or at least point me in the right direction, I would really appreciate it!
You need to get a reference to "Fortify Window" to be able to use variables from within it. If you need help understanding casting and/or how to create references check out video #1 and #25 on casting and creating references respectively. I think it will help you in this situation.
answered Mar 24 '19 at 05:57 PM
Nebula Games Inc
I'm not sure I understand correctly what do you want to do but from screenshot I see you got problem with casting.
To understand casting you'll need to understand https://www.tutorialspoint.com/cplusplus/cpp_inheritance.htm
It's very commonly used so it'll be good idea to understand. I have gave you link but you can find video / page in your language so you'll better understand.
Generaly when you save variable with Parent class you can place childs inside then you need to cast to get acces to child functionality.
If this function is inside this BP you want to acces then just right click type get variable ... or function or drag and drop variable from left side.
answered Mar 24 '19 at 12:55 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here