Hi there!
I'm having trouble compiling a simple character I wanted with a prebuilt set of variables within a struct I could access to.
This is my code:
The compiler keeps saying "FMyCommand isn't a class name or namespace" and "Identifier not declared". What am I doing wrong? Am I supposed to name my struct in a very specific way or something?
I'm having trouble compiling a simple character I wanted with a prebuilt set of variables within a struct I could access to.
This is my code:
Code:
#pragma once #include "GameFramework/Character.h" #include "CustomCharacter.generated.h" UCLASS() class ACustomCharacter : public ACharacter { GENERATED_UCLASS_BODY() public: USTRUCT(Blueprintable) struct FMyCommand { GENERATED_USTRUCT_BODY() UPROPERTY() int32 ID; UPROPERTY() int32 BaseDamage; UPROPERTY() float Playrate; }; struct FMyCommand NCommand; };
Comment