Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

"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!

Product Version: UE 4.20
more ▼

asked Oct 09 '18 at 05:39 PM in Blueprint Scripting

avatar image

6 1 5

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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?

more ▼

answered Oct 09 '18 at 06:18 PM

avatar image

3.8k 18 23 20

avatar image NemoLArs Oct 09 '18 at 07:37 PM

Hello, thanks for answer!

Im using a Timer. I will look into that.. Because right now, when you place down the "wonder" a timer starts, and i manage to kill the timer if the wonder is destroyed. The problem is if 2 people have one each... because if i kill one wonder both timer dies... -.-

avatar image NemoLArs Oct 09 '18 at 08:17 PM

I think i got it! Thanks for the help. Found that "timer handle" and just call "Clear and Invalidate Timer By Handle" . Works fine so far!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question