[BUG] Construction script is NOT executed when a BluePrint variable is changed and PlayerCharacter is possessed

VIDEO TO SHOW THE BUG

  • The construction script IS NOT EXECUTED when the character is POSSESSED and you change a variable (for example the location of the PlayerCharacter).

  • The construction script IS EXECUTED when the character is NOT POSSESSED and you change a variable (for example the location of the PlayerCharacter).

Steps to reproduce:

1.New Project
2.Create a new Character Blueprint.
3.In the Construction Script add a Print String node with the text: "Unreal Engine is Awesome"
4.Change the "Default Pawn Class" in the GameMode to match our newly created Character Blueprint.
5.Play the game.
6.You will see the text "Unreal Engine is Awesome"
7.Now shift+f1
8.Then change the location of the character actor (IMPORTANT: Changing the Location x coordinate in the details panel. NOT DRAGGING it in the editor world.)
9.You will NOT see "Unreal Engine is Awesome" :(
10.Now click "Eject" button.
11.Now change again the location of the character actor.
12.You will see the "Unreal Engine is Awesome" :D
13.Now click "Possess" button
14.Go to 8.

The problem happens with Blueprint variables too…

Hello Roig,

Go to your Character Blueprint, go to ‘Class Settings’, and let me know if ‘Run Constructions Script on Drag’ is checked.

Thanks,
Tyler

Hello Tyler.Mashburn,

Yes it is checked :).

P.D. when i say:
8. Then change the location of the character actor → I’m not dragging it, I’m changing the Location x coordinate in the details panel. Not dragging it in the editor world. I will change it in the description of the problem.

Hello Roig,

When the game is playing, the Details panel should be grayed out. Can you provide a video or screenshots showing the steps you are taking?

Thanks,
Tyler

Hello Tyler, I attached a zip with a video that shows what I’m doing exactly.

Thanks!!!

Hello Roig,

I was able to reproduce the issue you described in 4.17.

I went ahead and tested this in 4.18 and it looks like this has been fixed. The Construction Script fires when transforming regardless of whether you have ejected or not.

I would recommend upgrading the project to 4.18 and you should not have any further issues with this.

Please let us know if you have any further issues.

Thanks,
Tyler