Xerces
03-19-2010, 07:45 PM
I created a class MyKActorSpawnable (extending KActorSpawnable). KActorSpawnable extends KActor extends DynamicSMActor extends Actor. Actor has a function "native final function PlayerController GetALocalPlayerController();" which I assume returns the currently set default player controller which was set from DefaultGame.ini.
In my class, I can call the function, but can't do something like
PlayerController c = GetALocalPlayerController();
I get an error saying it doesn't know what PlayerController is. What I want to do is cast "c" to MyPlayController, but it doesn't recognize MyPlayerController as a valid class either. MyPlayerController is in the same directory as MyKActorSpawnable, so I don't see why it can't find it. Any idea why I can't access this class?
In my class, I can call the function, but can't do something like
PlayerController c = GetALocalPlayerController();
I get an error saying it doesn't know what PlayerController is. What I want to do is cast "c" to MyPlayController, but it doesn't recognize MyPlayerController as a valid class either. MyPlayerController is in the same directory as MyKActorSpawnable, so I don't see why it can't find it. Any idea why I can't access this class?