Announcement

Collapse
No announcement yet.

Problem with building scripts within UDK, for Scaleform tutorial 6/11

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Problem with building scripts within UDK, for Scaleform tutorial 6/11

    Im trying to set up my menu within UDk which i have created in flash, however im using march 2012 version of UDK.. in the tutorial its saying i need to remove the ConsoleCommand() line from the Unreal Script within my SWF_menu.ac file but..

    function OnStartButtonPress(GFxClikWidget.EventData ev)
    {
    consoleCommand("open prototype_stage1");
    }

    final function ConsoleCommand(strong Cmd, optional bool bWriteToLog)
    {

    if (PlayerOwner != none)
    PlayerOwner.ConsoleCommand(Cmd, bWriteToLog);
    }


    defaultproperties
    {

    WidgetBindings.Add((WidgetName="startBtn",WidgetCl ***=class'GFxClikWidget'))

    Which bit am i supposed to remove, because when i take out "ConsoleCommand("open prototype_stage1")
    the script still fails to build...

    Any help is appreciated thanks

    #2
    Are you running in editor ? in editor open does not work .

    Comment


      #3
      Originally posted by chrris View Post
      Im trying to set up my menu within UDk which i have created in flash, however im using march 2012 version of UDK.. in the tutorial its saying i need to remove the ConsoleCommand() line from the Unreal Script within my SWF_menu.ac file but..




      Which bit am i supposed to remove, because when i take out "ConsoleCommand("open prototype_stage1")
      the script still fails to build...

      Any help is appreciated thanks
      Did you paste and copy your code?

      Code:
      final function ConsoleCommand(strong Cmd, optional bool bWriteToLog)
      Change argument value type; "strong Cmd" to "string Cmd"

      Comment


        #4
        Remove the actual function definition - this bit:

        Code:
        final function ConsoleCommand(string Cmd, optional bool bWriteToLog)
        {
            if (PlayerOwner != none)
                PlayerOwner.ConsoleCommand(Cmd, bWriteToLog);
        }

        Comment

        Working...
        X