# FActorSpawnParameters - how exactly does it work?

**URL:** <https://forums.unrealengine.com/t/factorspawnparameters-how-exactly-does-it-work/326493>\
**Category:** World Creation\
**Tags:** capsulecomponent, unreal-engine, Physics, Collision, UE4, CPP, question\
**Created:** [July 25, 2015, 2:45pm UTC](https://forums.unrealengine.com/t/factorspawnparameters-how-exactly-does-it-work/326493 "2015-07-25T14:45:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arch1eN](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Arch1eN](https://forums.unrealengine.com/u/Arch1eN)\
**Post date:** [July 25, 2015, 2:45pm UTC](https://forums.unrealengine.com/t/factorspawnparameters-how-exactly-does-it-work/326493/1 "2015-07-25T14:45:46Z")

</div>

Hi !

I am trying to spawn projectile, and make ignore it’s owner, but i don’t quite know how to do it. Im trying to do something like this:

```
		FActorSpawnParameters params;
		params.Instigator = Controller->GetPawn();
		World->SpawnActor<AProjectileActor>(SpawnLocation, FireDirection, params);

```

And then in the projectile class, invoke IgnoreActorWhenMoving method.

```
	if (GetInstigator())
		m_CollisionCapsule->IgnoreActorWhenMoving(GetInstigator(), true);

```

But it doesn’t work at all. Could someone explain to me how does this FActorSpawnParameters work ? Is it passed to the spawned actor and can be used ? Or am i missing something ?

---

<div class="post-metadata">

**Author:** ![ObamaPls](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/obamapls/32/559877_2.png) [@ObamaPls](https://forums.unrealengine.com/u/ObamaPls)\
**Post date:** [November 14, 2016, 3:52am UTC](https://forums.unrealengine.com/t/factorspawnparameters-how-exactly-does-it-work/326493/2 "2016-11-14T03:52:16Z")

</div>

I don’t know if this helps, but if you want to set the collision handling when the object has been spawned (basically the green pin on the Spawn Actor from Class node), you need to set the handling method outside the GetWorld-\>SpawnActor() function separately.

So like :

```
AActor* SpawnedActor = GetWorld()->SpawnActor(<ClassReference>, <LocationOfSpawn>);
SpawnedActor->SpawnCollisionHandlingMethod = SpawnActorCollisionHandlingMethod::AlwaysSpawn; //This is basically the green "Collision Handling Override" pin
```

---

<div class="post-metadata">

**Author:** ![BelalEhmed](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/belalehmed/32/469861_2.png) [@BelalEhmed](https://forums.unrealengine.com/u/BelalEhmed)\
**Post date:** [July 30, 2020, 4:11pm UTC](https://forums.unrealengine.com/t/factorspawnparameters-how-exactly-does-it-work/326493/3 "2020-07-30T16:11:10Z")

</div>

This might help  
[https://www.ue4community.wiki/Actor](https://www.ue4community.wiki/Actor)

---

<div class="post-metadata">

**Author:** ![TheKaosSpectrum](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheKaosSpectrum](https://forums.unrealengine.com/u/TheKaosSpectrum)\
**Post date:** [July 31, 2020, 6:13pm UTC](https://forums.unrealengine.com/t/factorspawnparameters-how-exactly-does-it-work/326493/4 "2020-07-31T18:13:50Z")

</div>

Do you realise how old this question was? 😃

---

<div class="post-metadata">

**Author:** ![X-perto](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@X-perto](https://forums.unrealengine.com/u/X-perto)\
**Post date:** [November 11, 2022, 2:44pm UTC](https://forums.unrealengine.com/t/factorspawnparameters-how-exactly-does-it-work/326493/5 "2022-11-11T14:44:59Z")

</div>

Really?

---

<div class="post-metadata">

**Author:** ![tkutzner](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tkutzner/32/1081535_2.png) [@tkutzner](https://forums.unrealengine.com/u/tkutzner)\
**Post date:** [July 9, 2024, 10:40pm UTC](https://forums.unrealengine.com/t/factorspawnparameters-how-exactly-does-it-work/326493/6 "2024-07-09T22:40:50Z")

</div>

Since this is STILL the first-ranked Google search result for FActorSpawnParameters, I’ll update it for 2024. A wiki page for it is here: [Actor | Unreal Engine Community Wiki](https://unrealcommunity.wiki/6100e8109c9d1a89e0c314d7)  
and to save you a click, here is a syntax example of its usage:

```auto
   FActorSpawnParameters SpawnInfo;
    SpawnInfo.Owner = this;
    SpawnInfo.Instigator = GetInstigator();
    SpawnInfo.ObjectFlags |= RF_Transient;
    YourActorReference = GetWorld()->SpawnActor(SpawnInfo);

```
