Grasan
(Grasan)
November 3, 2017, 11:25pm
1
Hi, I have been trying to come back to c++ coding but, for some reason a script that I have always used, wont work anymore.
GetCharacterMovement()->MaxWalkSpeed = runningSpeed;
It is complaining about “pointer to incomplete class type not allowed”. Can someone tell me whats wrong. Have Epic changed the way to change speed?
Ninja_K
(Ninja_K)
November 4, 2017, 3:12am
2
include this in the .cpp
#include “GameFramework/CharacterMovementComponent.h”
and forward-declare UCharacterMovementComponent in the .h like this
class UCharacterMovementComponent;
Josai
(Josai)
November 4, 2017, 12:04pm
3
Does your c++ code compile when you disable Intellisense of Visual Studio? This error appears to me often because intellisense doesn’t work well without some configuations.
Grasan
(Grasan)
November 4, 2017, 12:40pm
4
Ok I’m stupid. It was a header that was missing. thanks alot Ninja_K