Download

How to reinitialize construction script every time game starts?

Hi!
I have a construction script wich is working fine in the editor, but I need to run this code every time of beginPlay.
I need this because I have some randomized values in construction, and want to randomize them every beginplay.
Thanks

Easiest way is to just copy what you have in the contruction script into the begin play node…

Or just create a Custom Event and call that from inside the construction script AND beginplay

I get This Error Message when I move my code to BeginPlay.

Edit: My mesh was not static, I set it to Static and now working.

Ok, make the mesh moveable.