Announcement

Collapse
No announcement yet.

please teach me how to make my Health bar HUD working

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

    please teach me how to make my Health bar HUD working

    Dear community,

    I followed this post and get my score bar(health bar) HUD showing in my environment (http://forums.epicgames.com/threads/...-A-from-a-noob)

    Now I have gained a score variable from GFXMovie and I stored it in a KISMET node (a custermized KISMET action followed by this tutorial (http://udkc.info/index.php?title=Tut...g_an_XP_system)

    Then I am stuck since I don't know how to send this score variable to my Healthbar HUD file and ask the script to use this variable and upgraded total score(health) and show the total score in the screen.

    I read some posts and I find something like this:

    class customtrigger extends triggervolume;

    event Touch()
    {
    foreach touchingactor (class "MyPawn", P)
    {
    P.incrementvariable();
    }
    }



    class MyPawn extends UTPawn;

    var int variabletoincrement;

    function incrementvariable()
    {
    variabletoincrement += 1;
    }

    and I am still confused since my case is not just simple touch-static variable-get style but touch-inteact-dynamic variable-get style

    Please teach me how I can approach the result I want.

    Thanks a lot!
Working...
X