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"

Can't Make An Infinate Loop

I am making an app with Unreal Engine. I wanted a command to constantly repeat but I get an error that said I can't put an infinite loop in. Is there a way around this. Thanks.

Product Version: UE 4.16
Tags:
more ▼

asked Jun 09 '17 at 08:43 PM in Blueprint Scripting

avatar image

Eno12345
1 1 5 7

(comments are locked)
10|2000 characters needed characters left

3 answers: sort voted first

alt text

capture.png (23.5 kB)
more ▼

answered Jun 10 '17 at 11:41 AM

avatar image

Eno12345
1 1 5 7

(comments are locked)
10|2000 characters needed characters left

What you probably want is: timer

The reason you have to do it this way is you need to give the program time to do other things between the times you run your command. If you just run your one command in an infinite loop, nothing else will happen so your game will not render, your player will not move and most likely your computer would freeze if UE4 didn't prevent that.

capture.png (73.7 kB)
more ▼

answered Jun 10 '17 at 07:04 AM

avatar image

pr4wl
69 7 15 20

avatar image RotemS Jun 10 '17 at 07:10 AM

Or just handle the Tick event.

avatar image pr4wl Jun 10 '17 at 07:22 AM

That's true, if you just want something to happen every frame use the tick event. Or if you want to loop a certain number of times in the same frame use a for loop. We really need more info about what you want to do to know what would be best.

avatar image Eno12345 Jun 10 '17 at 10:22 AM

I don't want in to tick every frame but the image above didn't work

avatar image Sertac Ogan Jun 10 '17 at 10:27 AM

Function Name input is must same custom event name. Can you check it ?

avatar image Eno12345 Jun 10 '17 at 10:30 AM

alt text

yes I'm sure.

avatar image Sertac Ogan Jun 10 '17 at 10:31 AM

Okey can you object type clear and try again ?

avatar image Eno12345 Jun 10 '17 at 11:28 AM

What does that mean?

avatar image Sertac Ogan Jun 10 '17 at 11:30 AM

It's mean you should object input click and none button.

avatar image Eno12345 Jun 10 '17 at 11:32 AM

It didn't work.

avatar image Eno12345 Jun 10 '17 at 11:40 AM

I found a solution

(comments are locked)
10|2000 characters needed characters left

You can increase the maximum number of cycles, but you can not allow an infinite loop. Go to Project Settings > General Settings > Maximum Loop Iteration Count.

more ▼

answered Jun 09 '17 at 08:54 PM

avatar image

Sertac Ogan
1.5k 30 10 46

(comments are locked)
10|2000 characters needed characters left
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