# Projectile movement cant go active again after disactivate

**URL:** <https://forums.unrealengine.com/t/projectile-movement-cant-go-active-again-after-disactivate/1645903>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [January 27, 2024, 8:02am UTC](https://forums.unrealengine.com/t/projectile-movement-cant-go-active-again-after-disactivate/1645903 "2024-01-27T08:02:15Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Td1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/td1/32/894132_2.png) [@Td1](https://forums.unrealengine.com/u/Td1)\
**Post date:** [January 27, 2024, 8:02am UTC](https://forums.unrealengine.com/t/projectile-movement-cant-go-active-again-after-disactivate/1645903/1 "2024-01-27T08:02:15Z")

</div>

i want my projectile to go active again after disactivate but it wont work

---

<div class="post-metadata">

**Author:** ![gardian206](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gardian206](https://forums.unrealengine.com/u/gardian206)\
**Post date:** [January 27, 2024, 8:07am UTC](https://forums.unrealengine.com/t/projectile-movement-cant-go-active-again-after-disactivate/1645903/2 "2024-01-27T08:07:08Z")

</div>

can you be a bit more specific?  
what do you currently have? (maybe a screen shot of the blueprint in question)

what do you mean by “disactivate”? did it hit a wall, did its lifespan expire?

are you trying to place it back at the “Start Point” to trigger it again?

are you talking about something completely different?

---

<div class="post-metadata">

**Author:** ![Td1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/td1/32/894132_2.png) [@Td1](https://forums.unrealengine.com/u/Td1)\
**Post date:** [January 27, 2024, 8:10am UTC](https://forums.unrealengine.com/t/projectile-movement-cant-go-active-again-after-disactivate/1645903/3 "2024-01-27T08:10:20Z")

</div>

> [@gardian206](#):
>
> can you be a bit more specific?

i have a box colosoin on the projectile if it hit a player after 0.5 second it will set active un checked update the projectile velocity to go back and hit the player agian but it seems when i set active checked again it wont work

---

<div class="post-metadata">

**Author:** ![Td1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/td1/32/894132_2.png) [@Td1](https://forums.unrealengine.com/u/Td1)\
**Post date:** [January 27, 2024, 8:13am UTC](https://forums.unrealengine.com/t/projectile-movement-cant-go-active-again-after-disactivate/1645903/4 "2024-01-27T08:13:50Z")

</div>

i just used a print string on the velocity update and it seems that it update the 0,0,0 the second time i think thats why it wont move

---

<div class="post-metadata">

**Author:** ![Td1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/td1/32/894132_2.png) [@Td1](https://forums.unrealengine.com/u/Td1)\
**Post date:** [January 27, 2024, 8:17am UTC](https://forums.unrealengine.com/t/projectile-movement-cant-go-active-again-after-disactivate/1645903/5 "2024-01-27T08:17:07Z")

</div>

a screenshot of the update velocity

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/3/1/b3149efefa89f7793b921bf2b9322dcd045c2f91.png)

---

<div class="post-metadata">

**Author:** ![gardian206](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gardian206](https://forums.unrealengine.com/u/gardian206)\
**Post date:** [January 27, 2024, 8:21am UTC](https://forums.unrealengine.com/t/projectile-movement-cant-go-active-again-after-disactivate/1645903/6 "2024-01-27T08:21:34Z")

</div>

you might need to call the `SetUpdateComponent()` for the movement component (in this case the `ProjectileMovement` Component of the projectile after the collision.

you might be able to accomplish it by sending “Reset = true” to the `Activate()` node

otherwise you may need to pull out `ProjectileMovement->SetUpdateComponent()`

part of the projectile motion Component deactivates that specifically so that a projectile doesn’t just keep moving after it hit something.

---

<div class="post-metadata">

**Author:** ![Td1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/td1/32/894132_2.png) [@Td1](https://forums.unrealengine.com/u/Td1)\
**Post date:** [January 27, 2024, 8:29am UTC](https://forums.unrealengine.com/t/projectile-movement-cant-go-active-again-after-disactivate/1645903/7 "2024-01-27T08:29:55Z")

</div>

> [@gardian206](#):
>
> otherwise you may need to pull out `ProjectileMovement->SetUpdateComponent()`

ok i got the

> \*_ProjectileMovement-\>SetUpdateComponent()_

- where should i plug it or what should i do with it

---

<div class="post-metadata">

**Author:** ![Td1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/td1/32/894132_2.png) [@Td1](https://forums.unrealengine.com/u/Td1)\
**Post date:** [January 27, 2024, 8:36am UTC](https://forums.unrealengine.com/t/projectile-movement-cant-go-active-again-after-disactivate/1645903/8 "2024-01-27T08:36:37Z")

</div>

i duplicated the projectile movement and after disabling the first one it will start using the duplicated one and it works , i think thats enough for me i dont need it to keep doing it twice is enough

---

<div class="post-metadata">

**Author:** ![NorthRockStudios](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/northrockstudios/32/925918_2.png) [@NorthRockStudios](https://forums.unrealengine.com/u/NorthRockStudios)\
**Post date:** [August 5, 2024, 11:37am UTC](https://forums.unrealengine.com/t/projectile-movement-cant-go-active-again-after-disactivate/1645903/9 "2024-08-05T11:37:01Z")

</div>

Just giving a short update on this as I am digging into this problem for my projectile object pooling. It seems like setting the projectile component bAutoActivate = false; and than calling SetUpdatedComponent() along with Activate() on the projectile movement component later does not trigger it to start moving again. I was able to isolate this problem and get it to start moving after being disabled by manually toggling bAutoActivate inside PIE during gametime. I will be trying to track down the cause of this problem and will update this post once I discover a solution.

**-UPDATE-** _only 5 minutes later_  
Well that didn’t take long. Setting bAutoActivate = true; on the ProjectileMovementComp got it to begin movement again… very weird. I will dig deeper and find out why. Brb.

**UPDATE**  
Found the little guy stopping Activate() from working.

bAutoUpdateTickRegistration = true; is the default. THIS will stop Activate() from working completely with ProjectileMovementComponents… (from what I can see during testing)

bAutoUpdateTickRegistration = false; will now let you Activate() and Deactivate() as you please.

I’ll be looking more into why this is occurring but on the surface its hard to tell. There are only a few functions where this is relevant… Ill update this again If I find the exact reason.

**UPDATE**  
Okay after furthering testing it appears like you also need to override this in ProjectileMovementComponent  
virtual void StopSimulating(const FHitResult& HitResult);  
and prevent it from callling SetUpdatedComponent(NULL);

```auto
void USpellProjectileMovementComponent::StopSimulating(const FHitResult& HitResult)
{
	Velocity = FVector::ZeroVector;
	ClearPendingForce(true);
	UpdateComponentVelocity();
	OnProjectileStop.Broadcast(HitResult);
}

```

this is my overridden version of the function.  
I also did an override for Activate() as well so I can set its velocity back to its initial speed.

```auto
void USpellProjectileMovementComponent::Activate(bool bReset)
{
	if (bReset || ShouldActivate() == true)
	{
		SetComponentTickEnabled(true);
		SetActiveFlag(true);
		UpdateSpellVelocity(); // <- this is a custom function to sets its velocity back to its initialspeed.

		OnComponentActivated.Broadcast(this, bReset);
	}
}

```

Below is the UpdateSpellVelocity() function. This is just essentially what is called during InitializeComponent() but with some of the “filler” removed.

```auto
void USpellProjectileMovementComponent::UpdateSpellVelocity()
{
	// InitialSpeed > 0 overrides initial velocity magnitude.
	if (InitialSpeed > 0.f)
	{
		// Defaulted to just using 1.0 FVector so it resets to our BaseValue every time.
		Velocity = FVector(1.0, 0, 0) * InitialSpeed;
	}

	if (bInitialVelocityInLocalSpace)
	{
		SetVelocityInLocalSpace(Velocity);
	}

	if (bRotationFollowsVelocity)
	{
		if (UpdatedComponent)
		{
			FRotator DesiredRotation = Velocity.Rotation();
			if (bRotationRemainsVertical)
			{
				DesiredRotation.Pitch = 0.0f;
				DesiredRotation.Yaw = FRotator::NormalizeAxis(DesiredRotation.Yaw);
				DesiredRotation.Roll = 0.0f;
			}

			UpdatedComponent->SetWorldRotation(DesiredRotation);
		}
	}

	UpdateComponentVelocity();

	if (UpdatedPrimitive && UpdatedPrimitive->IsSimulatingPhysics())
	{
		UpdatedPrimitive->SetPhysicsLinearVelocity(Velocity);
	}
}

```

Will update again if I find out anymore info.

---

<div class="post-metadata">

**Author:** ![gr8h8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gr8h8](https://forums.unrealengine.com/u/gr8h8)\
**Post date:** [February 27, 2025, 9:13pm UTC](https://forums.unrealengine.com/t/projectile-movement-cant-go-active-again-after-disactivate/1645903/10 "2025-02-27T21:13:35Z")

</div>

That worked for us. In bp we disabled the auto register update component, then call Set Update Component with the root component when the projectile gets activated. This got it to work consistently on each activation.

---

<div class="post-metadata">

**Author:** ![NorthRockStudios](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/northrockstudios/32/925918_2.png) [@NorthRockStudios](https://forums.unrealengine.com/u/NorthRockStudios)\
**Post date:** [February 28, 2025, 11:49pm UTC](https://forums.unrealengine.com/t/projectile-movement-cant-go-active-again-after-disactivate/1645903/11 "2025-02-28T23:49:27Z")

</div>

I’m glad I could be of assistance! 😄

---

<div class="post-metadata">

**Author:** ![Lupoluke](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lupoluke](https://forums.unrealengine.com/u/Lupoluke)\
**Post date:** [March 30, 2025, 9:56am UTC](https://forums.unrealengine.com/t/projectile-movement-cant-go-active-again-after-disactivate/1645903/12 "2025-03-30T09:56:39Z")

</div>

An huge Kiss (women only)!  
After wasting 3 hours to configure my pool projectile this post saved my life:  
(In construction)  
ProjectileMovementComponent-\>bAutoRegisterUpdatedComponent = false;  
And:

ProjectileMovementComponent-\>SetUpdatedComponent(GetRootComponent());  
before use it.  
This solved my issues too.  
Thank you all!
