This is my first leap out of tutorials and building my own game so bear with me. I've been struggling with getting C++ classes to work with one another and accessing Unreal blueprints from my code.
I currently have the Action Bound and logic required for an "attack action" in my Character C++ class. I want to access the C++ UAnimInstance class that I created and is currently parenting my Animation Blueprint for my character so that I can change a bool variable within it - this bool is a requirement in my state machine to begin the attack animation.
How do I access one class from another?
What I Have Tried:
MainCharacter.h:
UCLASS()
class SQUEEGLESADVENTURE_API AMainCharacter : public ACharacter
private:
class UABP_MainGoblin* GoblinClass;
MainCharacter.cpp
void AMainCharacter::IceAttack()
{
GoblinClass->bIceAttack = true;
}
I'm getting error "Pointer to incomplete class type "UABP_MainGoblin" is not allowed.