Moving GENERATE_BODY in the AIController.h stop compiling

If i add anything above the GENERATED_BODY() of line 87 in the AIController.h i get a list of error ant in no longer compiles, i can add stuff after if, but any thing that causes it to no longer be on line 87 results in a lot of errors and it no longer compiles. Anyone understand why this happens?

When you say before line 87, do you mean after the class declaration but before the Macro? Because I’m not sure if issues will be caused with anything there? However, declaring things out of the class and above that line should be fine?

Firstly tanks for the response. I mean outside of the class, above the class declaration, if i try and add lets say an enum or struct above the class i get tons of errors and it wont compile. I guess there’s something i’m not understanding because the same this seems to happen if you want to directly some of the base header files like actor.h and AIController.h.

Firstly tanks for the response. I mean outside of the class, above the class declaration, if i try and add lets say an enum or struct above the class i get tons of errors and it wont compile. I guess there’s something i’m not understanding because the same this seems to happen if you want to directly some of the base header files like actor.h and AIController.h.