[C++] Console command not recognized

I created command line function inside one of my classes:

virtual void GetAllQuests();

It shows up in the console auto-suggest listing. But when Im trying to execute it:

Command not recognized: GetAllQuests

Am I doing something wrong?

Hello MRCookie,

I’m not experienced using this specifier myself but I did see in the documentation that it can only work when defined in certain classes. While I’m not currently sure what all of those classes are and I’ll be looking for a list of that, I can confirm that it works when declared in a Gamemode and does not inside of an Actor.

I’ll get back to you with a list if I can find one.

Yeah, I remember something like that. I think you can declare command function only inside: GameMode and PlayerController class.