UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

SetTimerUp()

broken avatar :(
Created 8 years ago
by Sheep_Wizard
0 Members and 1 Guest are viewing this topic.
2,027 views
broken avatar :(
×
broken avatar :(
Location: gbUnited Kingdom
Date Registered: 29 January 2015
Last active: 4 years ago
Posts
5
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
Sheep_Wizard's Groups
Sheep_Wizard's Contact & Social Links
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);
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 12 September 2016
Last active: 3 years ago
Posts
306
Respect
Forum Rank
Perk Hacker
Primary Group
Member
My Contact & Social Links
More
×
reckfullies's Groups
reckfullies's Contact & Social LinksReckfulliesReckfullies
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:


it seems like it is saying you need a hud_timer_element not a hud_element.
Last Edit: October 08, 2016, 05:15:41 am by reckfullies
broken avatar :(
×
broken avatar :(
Location: gbUnited Kingdom
Date Registered: 29 January 2015
Last active: 4 years ago
Posts
5
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
Sheep_Wizard's Groups
Sheep_Wizard's Contact & Social Links
hmm idk setTimer() function works fine with hud I created below.

Also the timer does appear it just count up.

 
Loading ...