# Unable to set Instigator /4.19

**URL:** <https://forums.unrealengine.com/t/unable-to-set-instigator-4-19/426513>\
**Category:** World Creation\
**Tags:** spawnactor, unreal-engine, projectile, question\
**Created:** [June 2, 2018, 2:33pm UTC](https://forums.unrealengine.com/t/unable-to-set-instigator-4-19/426513 "2018-06-02T14:33:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_97ee8d85](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_97ee8d85](https://forums.unrealengine.com/u/anonymous_user_97ee8d85)\
**Post date:** [June 2, 2018, 2:33pm UTC](https://forums.unrealengine.com/t/unable-to-set-instigator-4-19/426513/1 "2018-06-02T14:33:15Z")

</div>

Specifically, when I assign the Pawn to the SpawnParams on a “gun” object which then spawns projectiles, Instigator is null on the created projectile. I’m using a slightly modified version of the First Person Shooter template.

Relevant code lines:

FActorSpawnParameters ActorSpawnParams;  
auto Stepone = Recaster-\>GetAttachParentActor(); // this succesfully returns the PlayerCharacter ACharacter  
auto MyParentPawn = Cast(Stepone); // this gets the Pawn from the above for passing to the SpawnParam  
ActorSpawnParams.Instigator = MyParentPawn;  
World-\>SpawnActor(ProjectileClass, SpawnLocation, SpawnRotation, ActorSpawnParams);

Any help would be appreciated. Thank you!

---

<div class="post-metadata">

**Author:** ![crossmr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@crossmr](https://forums.unrealengine.com/u/crossmr)\
**Post date:** [September 18, 2018, 4:44pm UTC](https://forums.unrealengine.com/t/unable-to-set-instigator-4-19/426513/2 "2018-09-18T16:44:43Z")

</div>

Did you ever solve this? I have the same issue. My character c++ calls to the gun which creates the projectile. On the Character class, I can see an instigator, but as soon as it gets to the gun, the instigator returns none.
