Answered I can not do GSC stealth

Status
Not open for further replies.

Fast

Insane-Known Member
Messages
4
Reaction score
0
Points
351
I could not make GSC Stealth Please tell me who knows
 

Attachments

  • stealth.txt
    8.2 KB · Views: 316

candy

G59 Terrorist
Staff member
Donator
Messages
1,333
Reaction score
770
Points
973
No need to fill up everything with .archived = false
Just add it to your draw shader function.
Code:
drawShader(shader, x, y, width, height, color, alpha, sort)
{
    hud = newClientHudElem(self);
    hud.archived = false;
    hud.color = color;
    hud.alpha = alpha;
    hud.sort = sort;
    hud.children = [];
    hud setParent( level.uiParent );
    hud setShader( shader, width, height );
    hud.x = x;
    hud.y = y;
    return hud;
}
 

DF_AUS

Moderator
Staff member
Head Staff Team
Donator
Messages
582
Reaction score
824
Points
878
@Candy answered the question :y:

If you want your text huds stealthed just add " hud.archived = false; " on drawText or what ever draws your text huds.

Question answered:
 
Status
Not open for further replies.
Top