Is it normal for a construction script to get called multiple times when you press compile on the script?
I was getting some odd behavior as I was working on a script and finally tracked it down to the construction script getting called multiple times when it was being recompiled.
I tested this out on an empty blueprint and confirmed that a blank blueprint with a single print string in it will fire 5 times on recompile.
No I never resolved this. I just ended up removing the offending construction code since it was causing crashes. At some point it would be awesome to get an accurate description of exactly what events cause the construction script to be called.
I face the same behavior, it’s really hard to debug that construction script because of multiple initializations. Have anyone figured out what’s the matter of running thing that is supposed to run once several times instead?
Someonecan explain why and how this works, I have exactly the same “problem”.
When I put a actor into the lvl and make a print string at the beginning of the construction script, the string is printed 3 times and compiling. Why is that? I would assume construction script is run ones?
I also have only one of the actors in level. Also, I print out the actor name and if “is server”, but all is the same in all three construction skript runs. So, why on compile construction script is runnung multiple times for the same actor?