# Custom constructor for dynamically spawned actors

**URL:** <https://forums.unrealengine.com/t/custom-constructor-for-dynamically-spawned-actors/309811>\
**Category:** C++\
**Tags:** unreal-engine, CPP, question\
**Created:** [March 7, 2015, 5:44pm UTC](https://forums.unrealengine.com/t/custom-constructor-for-dynamically-spawned-actors/309811 "2015-03-07T17:44:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lordink](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lordink](https://forums.unrealengine.com/u/Lordink)\
**Post date:** [March 7, 2015, 5:44pm UTC](https://forums.unrealengine.com/t/custom-constructor-for-dynamically-spawned-actors/309811/1 "2015-03-07T17:44:18Z")

</div>

Hello,

I have a Pickup actor class in the project, which can be placed on the map two ways: either manually through the editor, or it call fall dynamically from dead enemy. In first case I want the actor to init and fill up its own parameters, in the second case I want the Pickup to be spawned “empty” and manually fill its parameters from dead enemy’s code. How would I do that?

AFAIK, there are no custom constructors for Actors as of 4.7 (only for UObjects). There is a spawnparams flag “deferredConstruction”, but it’s annotated to be applied only on Blueprint spawns.
