"Wonder" from AoE?
I have a question about creating a blueprint of an item that acts like a wonder from Age Of Empires.
Okey, so i have almost completed my game but i cant figure this one out..
Long story short - its a game and to win you have to collect resorces and build a structure (wonder) and hold it alive for a certan time.
So far i have the structure, i can craft it, place it and the timer starts. When the timer is on 0 i win! Woho!
BUT! - If the item gets destroyed during the timer it still going down.. i dont know if i shall do a check like every second after the wonder or when it gets destoryed remove the timer?
Hope you understand what i mean. Thanks in advance!
asked Oct 09 '18 at 05:39 PM in Blueprint Scripting
If you create a Timer by using a Set Timer node, it outputs a timer reference object (dark blue pin) that you can store in a variable. Later when you need it to cancel the timer like if the building is destroyed, then you can use that variable to stop, invalidate, or pause the timer.
How are you doing the timer? Are you using a Set Timer node or a Delay or setting a timestamp and comparing it every tick or what?
answered Oct 09 '18 at 06:18 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here