# UProjectileMovementComponent

**URL:** <https://forums.unrealengine.com/t/uprojectilemovementcomponent/295756>\
**Category:** World Creation\
**Tags:** UProperty, initialize, unreal-engine, projectile, CPP, question\
**Created:** [October 10, 2014, 12:48am UTC](https://forums.unrealengine.com/t/uprojectilemovementcomponent/295756 "2014-10-10T00:48:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Janyx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Janyx](https://forums.unrealengine.com/u/Janyx)\
**Post date:** [October 10, 2014, 12:48am UTC](https://forums.unrealengine.com/t/uprojectilemovementcomponent/295756/1 "2014-10-10T00:48:22Z")

</div>

I am trying to add a projectile to my game. I added this UProperty to my projectile class as seen below:

```
    /** movement component */
	UPROPERTY(VisibleDefaultsOnly, Category = Projectile)
	TSubobjectPtr<UProjectileMovementComponent> MovementComp;

```

I keep getting this error and I don’t know why. I have seen this be used in other programs.

```
Error: identifier "UProjectileMovementComponent" is undefined
error C2065: 'UProjectileMovementComponent ': undeclared identifier
error C2923: 'TSubobjectPtr': 'UProjectileMovementComponent' is not a valid template type argument

```

It seems to not know what UProjectileMovementComponent is. I thought it was a standard type in the UE4. I am using unreal engine 4.4.3 if that helps narrow the problem down.

---

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [October 10, 2014, 9:12am UTC](https://forums.unrealengine.com/t/uprojectilemovementcomponent/295756/2 "2014-10-10T09:12:56Z")

</div>

#Answer

Go into YourGame.h

Change

```
#include "EngineMinimal.h"

```

to

```
#include "Engine.h"

```

#❤

Rama

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_580a7da4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_580a7da4](https://forums.unrealengine.com/u/anonymous_user_580a7da4)\
**Post date:** [January 7, 2018, 7:45pm UTC](https://forums.unrealengine.com/t/uprojectilemovementcomponent/295756/3 "2018-01-07T19:45:45Z")

</div>

Another solution is to simply add:

```
#include "GameFramework/ProjectileMovementComponent.h"

```
