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"

[BUG Report] 'Event on Movement Mode Changed', triggers faster than 'Event Begin Play'

Hi everyone,

I was trying to set a component's relative location to a variable by getting its value on the event begin play, then by another event (event on movement change), use that variable. But then I noticed that the variable, sets its value to (0,0,0), (the value that appears after compiling a vector variable). After trying to debug, I noticed a very weird behavior, which was;

The 'Event on Movement Mode Changed', triggers faster than 'Event Begin Play' !!!

Here, I have created a very simple debugging graph to show you where the bug is;

alt text

alt text

As you can see, the GREEN text triggers faster than the RED one (because its below the red one). I hope you guys will solve this issue soon.

Regards,

Product Version: UE 4.15
Tags:
capture.png (474.9 kB)
eventgraph.png (111.2 kB)
more ▼

asked Jun 17 '17 at 07:47 PM in Bug Reports

avatar image

navid100
966 28 14 46

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

2 answers: sort voted first

the text on top actually fired first... there is no way event begin play can come after anything else.. it is literally the first thing.. you can also open up the console by pressing ` and there you can see all the strings printed in order....

the strings print from bottom to top on screen

if you explain some more about your current problem i can try to help you...

more ▼

answered Sep 16 '17 at 03:30 AM

avatar image

Imagine-Games
179 5 10 14

avatar image navid100 Sep 16 '17 at 12:02 PM

In theory event begin play should come first. But in my example it seems it doesn't. The string below always fires first and higher a string be on the screen, later it was fired. First reproduce it, then you will understand. Try printing an array of integers inside a for loop if you doubt on screen printing order.

Regards,

avatar image Imagine-Games Sep 16 '17 at 04:04 PM

you are right, i just checked it... ive been working too many hours lmao.... you could just use a delay on your on movement changed? or from event beginplay -> bind event to movementmodechangeddelegate... that way it will only fire after begin play

avatar image navid100 Sep 17 '17 at 04:51 PM

I've tried using delay node before but for some reason, it didn't solve the problem. But I haven't tried using delegate yet.

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

you can even do it in blueprints, theres a node called movement modechanged delegate

more ▼

answered Sep 17 '17 at 05:19 PM

avatar image

Imagine-Games
179 5 10 14

(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