Results 1 to 3 of 3
  1. #1
    MSgt. Shooter Person
    Join Date
    Jun 2012
    Posts
    59

    Default Help with PlayerController

    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?

  2. #2
    MSgt. Shooter Person
    Join Date
    Jun 2012
    Posts
    59

    Default

    Is anyone here? Why no one replies...

  3. #3

    Default

    What are you expecting it to do? Your player controller doesn't really do anything (The only thing I can see is a function called TROLL which shows a debug message). I would say your player controller is working considering you are able to call TROLL from the console. You just haven't told it to do anything else.


 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Copyright ©2009-2011 Epic Games, Inc. All Rights Reserved.
Digital Point modules: Sphinx-based search vBulletin skin by CompletevB.com.