# How to prevent a projectile being blocked by the instigator

**URL:** <https://forums.unrealengine.com/t/how-to-prevent-a-projectile-being-blocked-by-the-instigator/282989>\
**Category:** World Creation\
**Tags:** sphere, unreal-engine, Collision, projectile, Blueprint, question\
**Created:** [May 10, 2014, 10:31am UTC](https://forums.unrealengine.com/t/how-to-prevent-a-projectile-being-blocked-by-the-instigator/282989 "2014-05-10T10:31:35Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![mindfane](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mindfane/32/710746_2.png) [@mindfane](https://forums.unrealengine.com/u/mindfane)\
**Post date:** [May 10, 2014, 10:31am UTC](https://forums.unrealengine.com/t/how-to-prevent-a-projectile-being-blocked-by-the-instigator/282989/1 "2014-05-10T10:31:35Z")

</div>

Hello

I have setup a blue print with a collsion sphere, projectile movement and a particle system. I spawn this object from my charcter blueprint when mouse is clicked. I have set collsion mode to ‘Block All’ in the projectile blueprint (in the sphere component). Everything seems to work fine except my projectiles get hit with my character in some cases. I know this is the expected result here. But what I want to do is let the projectile pass though my character and other team memebers.

What changes should I make to achieve it?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_dede2580](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_dede2580](https://forums.unrealengine.com/u/anonymous_user_dede2580)\
**Post date:** [May 10, 2014, 1:18pm UTC](https://forums.unrealengine.com/t/how-to-prevent-a-projectile-being-blocked-by-the-instigator/282989/2 "2014-05-10T13:18:37Z")

</div>

I suspect that custom object channels and trace channels might be the answer

> **[Collision](https://docs.unrealengine.com/5.1/en-US/collision-in-unreal-engine/)**
>
> All about collision, collision responses, and collision presets in Unreal Engine.

On the other hand, this sounds like a problem that would pop up rather frequently, so maybe there is an even simpler solution built in somewhere, but nothing comes to mind.

---

<div class="post-metadata">

**Author:** ![mindfane](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mindfane/32/710746_2.png) [@mindfane](https://forums.unrealengine.com/u/mindfane)\
**Post date:** [May 10, 2014, 2:16pm UTC](https://forums.unrealengine.com/t/how-to-prevent-a-projectile-being-blocked-by-the-instigator/282989/3 "2014-05-10T14:16:21Z")

</div>

I tried collision channels, but did not work the way I wanted. I can set Ignore on Pawn channel. But then the projectile wont register hits with opposite team members.

Is there any beforeHit() event available (like in box2d) where after doing checks against the two actors, I could return false to ignore the hit and true to register the hit?

---

<div class="post-metadata">

**Author:** ![mindfane](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mindfane/32/710746_2.png) [@mindfane](https://forums.unrealengine.com/u/mindfane)\
**Post date:** [May 11, 2014, 4:06am UTC](https://forums.unrealengine.com/t/how-to-prevent-a-projectile-being-blocked-by-the-instigator/282989/4 "2014-05-11T04:06:40Z")

</div>

Found the solution:

I used the function MoveIgnoreActors() defined in UPrimitiveComponent. In the PostInitializeComponents() function, I simply added the Instigator to the list of IgnoreActors using this function. I also did the reverse on the Instigator itself (ie added the spawned projectile into the list of IgnoreActors for the Character).

In Blueptints, this can be achieved by using the function ‘Ignore Actor’ called from the Actos’s collsioncomponent or the mesh itself (if there are no separate collisioncomponent defined).

---

<div class="post-metadata">

**Author:** ![MADHOUSE](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MADHOUSE](https://forums.unrealengine.com/u/MADHOUSE)\
**Post date:** [August 11, 2015, 4:39am UTC](https://forums.unrealengine.com/t/how-to-prevent-a-projectile-being-blocked-by-the-instigator/282989/5 "2015-08-11T04:39:12Z")

</div>

Thanks alot! I’ve been banging my head over this for some time now! 🙂  
cheers

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_78a5feb8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_78a5feb8](https://forums.unrealengine.com/u/anonymous_user_78a5feb8)\
**Post date:** [August 23, 2015, 12:19am UTC](https://forums.unrealengine.com/t/how-to-prevent-a-projectile-being-blocked-by-the-instigator/282989/6 "2015-08-23T00:19:50Z")

</div>

Is it the ‘Ignore Actor when Moving’ function? It asks for some component from the instigator pawn to ignore, but I can’t seem to figure out what to give to it.

(edit) Just gave it the primitive component from the player character, but that doesn’t really fix the problem at all.

---

<div class="post-metadata">

**Author:** ![Demeese](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Demeese](https://forums.unrealengine.com/u/Demeese)\
**Post date:** [September 25, 2015, 4:16am UTC](https://forums.unrealengine.com/t/how-to-prevent-a-projectile-being-blocked-by-the-instigator/282989/7 "2015-09-25T04:16:21Z")

</div>

If you need your projectile to not collide with who fired it, then you plug GetInstigator in to the IgnoreActorWhenMoving node on the projectile. This, of course, requires you to assign an instigator when spawning the projectile in the first place.

On your pawn:

![60120-pawn.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/9/b/f9bb9889ef467859fff17fae61ab87d347581a3b.png)

If you spawn the projectile on your character blueprint, then plug in Self as the instigator.

On your projectile:

 ![60131-projectile.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/f/b/0fbebb12fe76b1f8ebf6e53937277890c1e951bd.png)

---

<div class="post-metadata">

**Author:** ![Nemecys](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nemecys](https://forums.unrealengine.com/u/Nemecys)\
**Post date:** [March 12, 2016, 10:09pm UTC](https://forums.unrealengine.com/t/how-to-prevent-a-projectile-being-blocked-by-the-instigator/282989/8 "2016-03-12T22:09:02Z")

</div>

Great answer, really fixed my problem effeciently!!  
I always forget the answer to “Who fired the gun?” … The Instigator, so it helps be get in the habit of making sure to pass on the correct information!

---

<div class="post-metadata">

**Author:** ![SAMYAZA](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/samyaza/32/619374_2.png) [@SAMYAZA](https://forums.unrealengine.com/u/SAMYAZA)\
**Post date:** [April 21, 2023, 8:40am UTC](https://forums.unrealengine.com/t/how-to-prevent-a-projectile-being-blocked-by-the-instigator/282989/9 "2023-04-21T08:40:41Z")

</div>

thank you, it works, but when instigator is standing still only  
if instigator is moving, he’s not ignored

btw, how to expand this case and ignore not just an instigator, but own team?

---

<div class="post-metadata">

**Author:** ![greg700000](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@greg700000](https://forums.unrealengine.com/u/greg700000)\
**Post date:** [July 10, 2024, 4:45am UTC](https://forums.unrealengine.com/t/how-to-prevent-a-projectile-being-blocked-by-the-instigator/282989/10 "2024-07-10T04:45:57Z")

</div>

After multiple attempts at trying to work with ‘Ignore Actor when Moving’ I am finally throwing the towel with this node.

My workaround is finally to use the ‘Set Collision Enabled’ to No collision, then use a really small delay, then enable back collision.
