Solved Hud

Question that is answered or resolved.

Smart Kitty

Well-known member
Hi guys. I was wondering if any of you know how to hud for a variable, I have tried to do one without success 7.7
 
Solution
Ah for that purpose, you'd need to acquire value from respective variable and display it.

Here's an example, you could add in update.c:
C:
      void p1 = getplayerproperty(0, "entity");
        int p1TP = getentityvar(p1, 1);
        if(p1TP == NULL()) p1TP = 0;

        drawstring(22, 227, 0, "TP_:_" + p1TP);

Similar code could be used in personal updatescript but that might need some adjustments.
The simplest way is to use update.c to display the variable's value on screen.

However, before I could give example, what kind of variable you're using here? entity variable or global variable?
 
Ah for that purpose, you'd need to acquire value from respective variable and display it.

Here's an example, you could add in update.c:
C:
      void p1 = getplayerproperty(0, "entity");
        int p1TP = getentityvar(p1, 1);
        if(p1TP == NULL()) p1TP = 0;

        drawstring(22, 227, 0, "TP_:_" + p1TP);

Similar code could be used in personal updatescript but that might need some adjustments.
 
Solution
Back
Top Bottom