Results 1 to 6 of 6

Thread: hud problem

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts
    how i can add axis and allies left to near this text
    You mean you want to display the number of activators and runners?

    how i can move this time to bottom
    Code:
    startGame()
    {
    	level.starttime = getTime();
    
    	if(level.timelimit > 0)
    	{
    		level.clock = newHudElem();
    		level.clock.horzAlign = "left";
    		level.clock.vertAlign = "top";
    		level.clock.x = 8;
    		level.clock.y = 2;
    		level.clock.font = "default";
    		level.clock.fontscale = 2;
    		level.clock setTimer(level.timelimit * 60);
    	}
    
    	for(;;)
    	{
    		checkTimeLimit();
    		wait 1;
    	}
    }
    Default HUD of the timer in gametype.gsc

  2. #2
    Private feritkkan's Avatar
    Join Date
    Jun 2016
    Posts
    29
    Thanks
    1
    Thanked 0 Times in 0 Posts
    yeah i mean this
    /[kick them all/

  3. #3
    Sergeant serthy's Avatar
    Join Date
    Nov 2012
    Posts
    450
    Thanks
    96
    Thanked 296 Times in 188 Posts
    You should use .label attribute of the hud in combination with the &&1 placeholder:

    PHP Code:
    level.ER_HUD7.label = &"^7ACTIVATORS^9 : &&1";
    level.ER_HUD7 setValueyour_count ); 
    btw, isn't xfire dead?

  4. #4
    Private feritkkan's Avatar
    Join Date
    Jun 2016
    Posts
    29
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by serthy View Post
    You should use .label attribute of the hud in combination with the &&1 placeholder:

    PHP Code:
    level.ER_HUD7.label = &"^7ACTIVATORS^9 : &&1";
    level.ER_HUD7 setValueyour_count ); 
    btw, isn't xfire dead?
    thats not working
    /[kick them all/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •