You’re attempting to call those functions in a AShooterCharacter member function but those are non-static member functions of AGameModeBase and APlayerController.
#include
doesn’t do what you probably think it does. It doesn’t mean you can call them whenever you want, it just copies the contents of the file. You need to call them on instances of those types. Consider the following
// Vector2D.h
struct IntVector2D
{
int X;
int Y;
int Length() const { return sqrt(X * X + Y * Y); }
};
// Character.cpp
#include "Vector2D..h"
void Character::Move()
{
Length(); // Character has no Length() function
IntVector2D Vec{1, 2};
Vec.Length(); // calls IntVector2D::Length()
}
You need to get the game mode and player controller and call those functions on them.