Hi all, I'm new in UDK, and today was my first experience in this. I've got a problem with scripting. I guess my PlayerController does not work.
This is code of PlayerController:
class CluOnePlayerController extends PlayerController;
simulated event PostBeginPlay(){
super.PostBeginPlay();
}
exec function TROLL() {
DebugMessagePlayer("DD");
}
Here is a code of the game:
class CluOneGame extends GameInfo;
simulated event PostBeginPlay(){
super.PostBeginPlay();
}
defaultproperties{
PlayerControllerClass = class'CluOne.CluOnePlayerController'
Name="Default__CluOneInfo"
}
If I place function TROLL into game code, then it works (it calls when I enter a command in console). But PlayerController does not live at all. What's the matter of this?



Reply With Quote

Bookmarks