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

i had the same problem and your solution fixed it thanks.