# Duplicate an actor in the scene with a blueprint, in the construction script.

**URL:** <https://forums.unrealengine.com/t/duplicate-an-actor-in-the-scene-with-a-blueprint-in-the-construction-script/1918557>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [June 27, 2024, 1:11pm UTC](https://forums.unrealengine.com/t/duplicate-an-actor-in-the-scene-with-a-blueprint-in-the-construction-script/1918557 "2024-06-27T13:11:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ElKaWeh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ElKaWeh](https://forums.unrealengine.com/u/ElKaWeh)\
**Post date:** [June 27, 2024, 1:11pm UTC](https://forums.unrealengine.com/t/duplicate-an-actor-in-the-scene-with-a-blueprint-in-the-construction-script/1918557/1 "2024-06-27T13:11:06Z")

</div>

Hi,

I’m building a blueprint that uses the object bounds of an actor in the scene, to spawn another mesh at the outer bounds of this actor. I got it to work so far, however, the issue comes when the actor is rotated, since the scale of the bounds changes with the actors rotation.

So my idea for a workaround was, to first duplicate the actor, set the rotation of the duplicate to 0,0,0, get the actor bounds of the duplicate, use the box extend from there, then destroy the duplicated actor again.

But how can I duplicate an actor in the scene? I tried using the Add Static Mesh Component node and plug the actor into the target, but that didn’t seem to work. Is there a node I can use for that? Is it even possible?  
I don’t want this to happen at runtime, but when I compile the blueprint.

I’m still very much a noob with blueprints, so please ELI5, as much as possible.

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [June 27, 2024, 7:38pm UTC](https://forums.unrealengine.com/t/duplicate-an-actor-in-the-scene-with-a-blueprint-in-the-construction-script/1918557/2 "2024-06-27T19:38:26Z")

</div>

> [@GetActorBounds affected by rotation](https://forums.unrealengine.com/t/getactorbounds-affected-by-rotation/338940/9):
>
> I know it is old, but in case someone needs the answer: void UYourClass::GetComponentOrientedBoundingBox(USceneComponent\* Component, FVector& Origin, FVector& Extent) { // Calculate the right world origin FVector ComponentExtent; float ComponentRadius; UKismetSystemLibrary::GetComponentBounds(Component, Origin, ComponentExtent, ComponentRadius); // Calculate the right extent auto Box = Component-\>GetOwner()-\>CalculateComponentsBoundingBoxInLocalSpace(); Extent = Box.GetExtent(); }

If pure blueprint try

> [@Oriented bounding box from GetLocalBounds](https://forums.unrealengine.com/t/oriented-bounding-box-from-getlocalbounds/241396/2):
>
> Figured out the box was off-center. Also figured out you can get the mesh from the meshcomponent and via that get to a bounds object. Came up with this in the meanwhile:
