The first and second lines of your code are contradictory. The first line, although it does absolutely nothing, indicates the code is in an Actor subclass while the second indicates it is in a World subclass. You should be getting an error message which you did not post.