Announcement

Collapse
No announcement yet.

Casting from HUD Class to object in the world

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

    Casting from HUD Class to object in the world

    I have my HUD class from a scaleform tutorial that uses:
    Code:
    local UTPawn UTP;
    
    UTP = UTPawn(PlayerOwner.Pawn);
     if (UTP == None) {
     return;
     }
    The version I have to use is May (UDK-2010-06) - University

    I have a class called Shield with a
    var int Shield_Percent;
    var int Shield_Max;

    What I want to do is read Shield.Shield_Percent and Shield.Shield.Max, from this HUD class.

    How do I reference this object?
    Tried and failed:
    foreach AllActors = Error, 'ForEach': An iterator expression is required
    foreach worldinfo.AllActors(class 'Shield',S) = SAME Error, 'ForEach': An iterator expression is required
    Error, Bad or missing expression for token: Shield

    #2
    Anyone have any thoughts, i'm still stuck.

    Comment


      #3
      Does nobody know how to read a variable in an object from a HUD class??

      Comment

      Working...
      X