# \[4.9P2\] Object was exist without a ConstructionScript calling

**URL:** <https://forums.unrealengine.com/t/4-9p2-object-was-exist-without-a-constructionscript-calling/328331>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [August 11, 2015, 4:23pm UTC](https://forums.unrealengine.com/t/4-9p2-object-was-exist-without-a-constructionscript-calling/328331 "2015-08-11T16:23:22Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_b08d4fb3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b08d4fb3](https://forums.unrealengine.com/u/anonymous_user_b08d4fb3)\
**Post date:** [August 11, 2015, 4:23pm UTC](https://forums.unrealengine.com/t/4-9p2-object-was-exist-without-a-constructionscript-calling/328331/1 "2015-08-11T16:23:22Z")

</div>

№ 5  
Title: [4.9P2] Object was exist without a ConstructionScript calling.

Importance: Medium.

Branch: Binary

Build version:  
Version: 4.9.0-2641355+++depot+UE4-Releases+4.9

System Specs:  
OS:Win8.  
Additional specification will be provided by request.

Attachments: It will be provided by request.

Detailed description of issue:  
Construction script were not executed if object was putted by level editor.

Screenshots/Link to video: It will be provided by request.

Reproduction steps:

1. Create a new blank project.
2. Create actor BP.
3. Call “Print String” in ConstructionScript function.
4. Put actor on main scene by level editor.
5. Make sure that actor exist in scene, but text was not appeared on screen.
6. Spawn actor in BP(level BP as example.)
7. Make sure that actor was spawned and text was appeared on screen.

Frequency: 100%

Expected behavior:  
ConstructionScript should be executed in anytime when object was created.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [August 11, 2015, 7:31pm UTC](https://forums.unrealengine.com/t/4-9p2-object-was-exist-without-a-constructionscript-calling/328331/2 "2015-08-11T19:31:00Z")

</div>

Hi ,

Construction Script is actually executing anytime Actor is placed into or moved within Viewport. If you open Output Log, you’ll see that it prints every time Actor is placed in level, and every time it is moved in level.

It looks like this is a bug with Print String not printing to Viewport screen when Construction Script is executed, so I’ve entered a bug report (19924). I’ll post here when I see any update on it.

Thanks for report!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b08d4fb3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b08d4fb3](https://forums.unrealengine.com/u/anonymous_user_b08d4fb3)\
**Post date:** [August 11, 2015, 10:12pm UTC](https://forums.unrealengine.com/t/4-9p2-object-was-exist-without-a-constructionscript-calling/328331/3 "2015-08-11T22:12:27Z")

</div>

Hello, .  
Unfortunately, but no. I have discovered this problem after I have tried setup some object properties in a ConstructionScript function.

P.s. Thank you for karma.

---

<div class="post-metadata">

**Author:** ![Ascedmor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ascedmor](https://forums.unrealengine.com/u/Ascedmor)\
**Post date:** [August 11, 2015, 10:18pm UTC](https://forums.unrealengine.com/t/4-9p2-object-was-exist-without-a-constructionscript-calling/328331/4 "2015-08-11T22:18:54Z")

</div>

I think that Event Begin Play will work for what you are trying to do.

Construction scripts are called when object is constructed, which can be when you place it in level or when you call a node to spawn it in blueprints; I had same problem until I developed a better understanding of what construction scripts were for.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [August 12, 2015, 6:49pm UTC](https://forums.unrealengine.com/t/4-9p2-object-was-exist-without-a-constructionscript-calling/328331/5 "2015-08-12T18:49:05Z")

</div>

Hi ,

There are some limits to what you can do in Construction Script, depending on order of creation. If you’re attempting to make changes to other Actors from Construction Script of another Actor, you need to make sure Actor exists first.

Can you be more specific about what you’re attempting to accomplish, and what isn’t working? Print String example has already been explained, so I’ll need another. Thanks!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b08d4fb3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b08d4fb3](https://forums.unrealengine.com/u/anonymous_user_b08d4fb3)\
**Post date:** [August 12, 2015, 7:52pm UTC](https://forums.unrealengine.com/t/4-9p2-object-was-exist-without-a-constructionscript-calling/328331/6 "2015-08-12T19:52:41Z")

</div>

Hello, .  
main issue is a ConstructionScript is not invoked for objects those placed via level editor.  
I have not problems any problems with objects those was constructed from a “spawn actor from class” function.  
I give a two addition reproduction sequence to make sure problem is not related with “Print String” function.

First one.  
Reproduction steps:

1. Create a new blank project.
2. Create actor BP.
3. Call “Quit game” in ConstructionScript function.
4. Put actor on main scene by level editor.  
!5. Make sure that actor exist in scene, but game was started. ConstructionScript was not invoked so game did not execute quit node.
5. Spawn actor in BP(level BP as example.)  
!7. Make sure that after you have pressed play button, game was not started because game execute quit node.

Second one.  
8. Put break point on quit node in ConstructionScript function.  
!9. Make sure breakpointed paused game only for object that was created by “spawn actor from class” function.

Do you need a third example how to reproduce bug?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b08d4fb3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b08d4fb3](https://forums.unrealengine.com/u/anonymous_user_b08d4fb3)\
**Post date:** [August 12, 2015, 7:54pm UTC](https://forums.unrealengine.com/t/4-9p2-object-was-exist-without-a-constructionscript-calling/328331/7 "2015-08-12T19:54:20Z")

</div>

No.  
Let change title from “Event Game Begin” to “Event Race Begin” for a simply example.  
Than, just ask yourself a question "Should I fill car fuel tank before a “Even Race Begin” or after “Even Race Begin”?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [August 12, 2015, 8:48pm UTC](https://forums.unrealengine.com/t/4-9p2-object-was-exist-without-a-constructionscript-calling/328331/8 "2015-08-12T20:48:43Z")

</div>

That’s not what Construction Script is for. Construction Script is executed when Actor is constructed, but when you Play Actors in level are already constructed. If you spawn it in, then it will run Construction Script.

Construction Script can be used for adjusting values and adding components while moved around inside level, but this isn’t expected place to run gameplay events, such as Quit Game.

---

<div class="post-metadata">

**Author:** ![Wuppy29](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Wuppy29](https://forums.unrealengine.com/u/Wuppy29)\
**Post date:** [December 12, 2016, 9:46am UTC](https://forums.unrealengine.com/t/4-9p2-object-was-exist-without-a-constructionscript-calling/328331/9 "2016-12-12T09:46:25Z")

</div>

Just to update, this problem is still present in Unreal 4.14.

---

<div class="post-metadata">

**Author:** ![TJ\_V](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tj_v/32/1008648_2.png) [@TJ\_V](https://forums.unrealengine.com/u/TJ_V)\
**Post date:** [December 20, 2016, 9:01pm UTC](https://forums.unrealengine.com/t/4-9p2-object-was-exist-without-a-constructionscript-calling/328331/10 "2016-12-20T21:01:11Z")

</div>

Hi Wuppy29,

This bug report is still active in our system. Here is public viewable version: [UE-19924](https://issues.unrealengine.com/issue/UE-19924)

Feel free to vote to help increase priority level. I’ve also posted on internal version that users are still for this to be fixed.

Cheers,

TJ

---

<div class="post-metadata">

**Author:** ![MisterPixel](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/misterpixel/32/629747_2.png) [@MisterPixel](https://forums.unrealengine.com/u/MisterPixel)\
**Post date:** [April 11, 2023, 4:52pm UTC](https://forums.unrealengine.com/t/4-9p2-object-was-exist-without-a-constructionscript-calling/328331/11 "2023-04-11T16:52:32Z")

</div>

This is still reproducible for me at time of writing this message (11-April-2023).
