Announcement

Collapse
No announcement yet.

Values not changing and also not logging.

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

    Values not changing and also not logging.

    Hello there i'm new to UDK and i was trying to change the health value to 1000 just as a test. But they don't change nor in game nor do they log so any help would be nice here is the code :


    Code:
    class AwesomeHealthDetector extends Pawn;
    
    
    function PostBeginPlay()
       {
        Health = 1000;
        HealthMax = 1000;
        `log(Health);
        `log(HealthMax);
       }
       DefaultProperties
            {
            Health = 99
            HealthMax = 500
            }

    #2
    does it say any thing when u rebuild your scripts?

    Comment


      #3
      Have you set your GameInfo class to use your custom pawn? Let's see your GameInfo class.

      Comment


        #4
        Hmm I guess you got it right i didn't set the Pawn in the GameInfo will try and fix it now.

        Comment

        Working...
        X