UGX-Mods

Call of Duty: Black Ops 3 => Help Desk => Scripting => Topic started by: Sheep_Wizard on October 06, 2016, 05:58:43 pm

Title: SetTimerUp()
Post by: Sheep_Wizard on October 06, 2016, 05:58:43 pm
Has anyone used the SetTimerUp function on a hud yet. I cant seem to get it working. The hud appears but the time does not count up.

Here is the code:
Code Snippet
Plaintext
self.playerhud["timer"] = newClientHudElem(self);
self.playerhud["timer"].x = 300;
self.playerhud["timer"].y = 10;
self.playerhud["timer"].elemtype = "timer";
self.playerhud["timer"].alignx = "left";
self.playerhud["timer"].xoffset = 0;
self.playerhud["timer"].yoffset = 0;
self.playerhud["timer"].fontscale = 1.4;
self.playerhud["timer"].font = "big";
self.playerhud["timer"].hidden = false;
self.playerhud["timer"].color = (1,1,1);
self.playerhud["timer"] SetTimerUp(50000);
Title: Re: SetTimerUp()
Post by: reckfullies on October 08, 2016, 05:14:28 am
Has anyone used the SetTimerUp function on a hud yet. I cant seem to get it working. The hud appears but the time does not count up.

Here is the code:
Code Snippet
Plaintext
self.playerhud["timer"] = newClientHudElem(self);
self.playerhud["timer"].x = 300;
self.playerhud["timer"].y = 10;
self.playerhud["timer"].elemtype = "timer";
self.playerhud["timer"].alignx = "left";
self.playerhud["timer"].xoffset = 0;
self.playerhud["timer"].yoffset = 0;
self.playerhud["timer"].fontscale = 1.4;
self.playerhud["timer"].font = "big";
self.playerhud["timer"].hidden = false;
self.playerhud["timer"].color = (1,1,1);
self.playerhud["timer"] SetTimerUp(50000);

I've never used this function before but you should check this out.

This is the function from the script api functions:
(https://www.ugx-mods.com/forum/proxy.php?request=http%3A%2F%2Fimgur.com%2F3JnfPEN.jpg&hash=9c563512043ffbf8e3bc47eea4ddb1c5d2afc27a)

it seems like it is saying you need a hud_timer_element not a hud_element.
Title: Re: SetTimerUp()
Post by: Sheep_Wizard on October 08, 2016, 04:58:14 pm
hmm idk setTimer() function works fine with hud I created below.

Also the timer does appear it just count up.