Posts
85
Respect
18Add +1
Forum Rank
Rotting Walker
Primary Group
Member
Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!players = getplayers();
for players.size {
players[i].hud.alpha = 0; //Any idea if there is an index of 'player' that makes this line of code possible?
}
function hud() {
players = getplayers();
level.hud = [];
for (i=0; i<players.size; i++) {
abc = asdf+i;
level.hud[i] = NewClientHudElem(players[i]);//I also tried level.i = NewCli... (This compiled but didn't work.)
level.hud[i].foreground = true;
level.hud[i].fontScale = 1.5;
level.hud[i].fontType = "default"; //etc.
level.i.sort = 1;
level.i.hidewheninmenu = true;
level.i.alignX = "left";
level.i.alignY = "bottom";
level.i.horzAlign = "left";
level.i.vertAlign = "bottom";
level.i.x = 35;
level.i.y -= 125;
level.i.alpha = 1; //eventually be 0
level.i SetText("Stocks: "+level.cash); //Yes, you will be able to collect interest at a 'bank' in my map.
}
}
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. |
![]() Oil Rig Beta Access |
function hud()
{
players = getplayers();
for (i=0; i<players.size; i++)
{
hud[i] = NewClientHudElem(players[i]);
hud[i].foreground = true;
hud[i].fontScale = 1.5;
hud[i].fontType = "default";
hud[i].sort = 1;
hud[i].hidewheninmenu = true;
hud[i].alignX = "left";
hud[i].alignY = "bottom";
hud[i].horzAlign = "left";
hud[i].vertAlign = "bottom";
hud[i].x = 35;
hud[i].y -= 125;
hud[i].alpha = 1; //eventually be 0
hud[i] SetText("Stocks: "+level.cash);
players[i].my_hud = hud[i];
}
}
function change_myhud_alpha()
{
players = getplayers();
for (i=0; i<players.size; i++)
{
players[i].my_hud.alpha = 0;
}
}
hud[i] = NewClientHudElem(players[i]);
players[i].my_hud = hud[i];
function change_myhud_alpha() {
players[i].my_hud.alpha = 0;
}