I have added a virtual function to AActor, why can't i compile?

Virtual functions have to be implemented in the cpp file. Otherwise you’ll get a linker error.

Also, there’s no point changing AActor unless you’re using source engine - because it won’t compile anyway.

1 Like