Sorry, I should probably have added:
hence the typecast since player.Control[] returns a Control (an interface AnimControl implements). I still get the error without the typecast so it has nothing to do with it.Code:var control: AnimControl;
For now I've managed to work around the issue since there's an overloaded version of player.Control where I can pass an integer. I simply traverse through all the controllers in player and check if the current controller is of the type I want.
Bookmarks