x

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"

Refiring of sequences

Hi,

i have tested something like in the picture. The picture just shows an easy example

alt text

Action 1 will be executed correctly, but Action 2 not always. Is it true that with the next tick, this sequence will be skipped and refiring again from the beginning? Shall i use a gate or a doonce node to ensure that this sequence will be executed fully?

Kind regards

Product Version: Not Selected
Tags:
5.jpg (28.5 kB)
more ▼

asked Feb 25 '15 at 11:11 AM in Blueprint Scripting

avatar image

Raidfire.Net
677 62 54 118

avatar image lonerider543 Feb 25 '15 at 11:23 AM

Hey, I am not 100% certain, however I think that the delay will cause the second action to only be executed once every 5 seconds, while action 1 will be executed every tick. What exactly are you trying to achieve? Do you want both actions to run every tick? Then you could just get rid of the delay?

EDIT: Oh sorry, brain fart.. You want the second action to run 5 seconds after the first action, but you want to find a way to only execute the whole sequence.

So yeah, a doOnce node should do. Just put it straight after event tick and connect the completed delay with the reset.

EDIT2: You will need to use a sequence node after the completed delay, with action 2 being the first option and resetting the doonce being the second option

alt text

doonce.png (68.5 kB)
avatar image Raidfire.Net Feb 25 '15 at 05:20 PM

This sounds like what i wanna know. Thanks :D But what about put out the sequence and plug the output exec straight into the reset input exec of doonce? Should do the same?!

avatar image lonerider543 Feb 25 '15 at 05:55 PM

That's true. More brain farts :P

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

1 answer: sort voted first

You don't even need the Event tick and DoOnce if you want the sequence to run once and then start again. This is a simple flow concept. alt text In this example, the sequence runs indefinitely. You could plug a bool in the branch to stop it if you so desired. If you want the event to start at the beginning of the level, you could plug it straight out of your Event begin play sequence or plug a custom event out of your event begin play sequence to trigger this sequence like this. alt text

Have a good day!

flow.png (59.6 kB)
flow2.png (94.7 kB)
more ▼

answered Feb 25 '15 at 01:30 PM

avatar image

Mortusnyte
916 45 20 77

avatar image Raidfire.Net Feb 25 '15 at 05:22 PM

Unfortunately this is not what i need to know. Event begin play just starts once after the actor is set. i need a solution that do a sequence from the start to the end with every tick.

avatar image Mortusnyte Feb 25 '15 at 05:29 PM

The event begin play fires once true, but once it passes through your custom event, that sequence will keep fireing for as long as you keep the bool to true, and it will fire as fast as you tell it too. In the example I gave you, it shoots action 1 delays 5 sec shoots action 2 and restarts immidiately and repeats that sequence infinitely if left as is.

But if that is not what you need, then I missunderstood.

avatar image Mortusnyte Feb 25 '15 at 05:34 PM

But just be sure my example does the exact same thing as above, minus the fact that in the above example you have a tick fireing in the wind for 5 seconds.

avatar image Raidfire.Net Feb 25 '15 at 05:39 PM

Your solution is very interesting :D I will keep that in mind and think about it a little bit. You're not missunderstood, your solution is nice.

avatar image Raidfire.Net Feb 25 '15 at 05:53 PM

I thought about it. Would you recommend your solution and better avoid the tick event? What about performance? Your solution seems to make the tick event useless in this case:D

avatar image lonerider543 Feb 25 '15 at 06:00 PM

I think performance wise this would be better, however it will stop indefinitely once the boolean is set to false. Unless you connect the false output of the branch to the reroute node, so that the branch will loop until the boolean is set to true again.

On another note, how does fps affect this solution? How long does it take for a node to be fired anyway?

avatar image Mortusnyte Feb 25 '15 at 06:32 PM

This thread discuss this topic a bit more in depth https://forums.unrealengine.com/showthread.php?3200-Why-people-use-Tick-event-as-ultimate-solution-for-looped-calling

In my example, if you were to switch the bool to false and end the sequence, you could start the sequence again by simply switching the bool back to true in another sequence and calling the custom event again wherever desired.

And yes sgwave, I do not beleive that you need a Tick Event for what you are trying to do.

avatar image Mortusnyte Mar 05 '15 at 12:59 AM

Could you accept the answer if this has been resolved for tracking purposes, thank you.

avatar image Raidfire.Net Mar 05 '15 at 06:00 PM

Yes, of course. Thanks :D

(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