Announcement

Collapse
No announcement yet.

Pass variable value from GFX to UScript or Kismet

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

    Pass variable value from GFX to UScript or Kismet

    hello guys

    Is it possible to pass a variable value from GFX to UScript or Kismet?

    I have a simple menu that allows me to set a variable in flash by draging the mouse up or down.

    All I want to know is how to get that value from the flash and use it into UDK.

    PLS help, I been looking kinda everywhere for this info but I got nothing back.

    Thank you

    #2
    Please see the Getting Started forum post. It covers all kinds of info that will answer most of your questions.

    In fact, the very question you're asking about has a link in that post:

    http://forums.epicgames.com/showthre...1#post27806200

    Comment


      #3
      Hello Matt

      Thank you for covering this, but with the code from that Link I always get the same error:
      Unexpected - RootMC

      So I guess I'm making some progress but not all the way.

      Here is my AS that resides directly on first frame of the flash scene:
      Code:
      import flash.external.ExternalInterface;
      var testputere:Number = 1500;
      var testprecizie:Number = 200;
      ExternalInterface.call ("asteasunt", testputere, testprecizie);
      And here is the UnrealScript code
      Code:
      var float putere;
      var float precizie;
      
      RootMC = GetVariableObject("_root");
      
      /* Get AS Vars */
      myNumber = RootMC.GetFloat("putere");
      myNumber = RootMC.GetFloat("precizie");
      Obviously I am doing something wrong here.

      Can u shed some more light on me please?

      Thank you

      Comment


        #4
        dont know the tutorial your following but its probably

        var GFxObject RootMC;

        RootMC = GetVariableObject("_root");

        Comment


          #5
          id go with that ^^.

          Comment


            #6
            what about the reverse? I'd like to pass variable from Kismet as get actor location to GFX.. What should I do?

            Comment


              #7
              Have you looked at the GFxUI actions in Kismet? There is an action called GFx SetVariable that allows you to set variables in your Flash file from Unreal.

              Comment


                #8
                How does it works ?? is a simple example somewhere? I need to show only one number in kismet... through GFX Movie.. jooj bazmek

                Comment

                Working...
                X