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

hold USE for a progress bar?

broken avatar :(
Created 11 years ago
by Deleted User
0 Members and 1 Guest are viewing this topic.
1,625 views
broken avatar :(
  • DeletedUser
  • Deleted Member
×
broken avatar :(
DeletedUser
This user is deleted :(
anyone know how i would go about scripting a progress bar?

i have a trigger which requires you to press USE but i would prefer it to be a progress  bar and only trigger when a the progress bar is full?

Basically make this use a progress bar

Marked as best answer by Deleted User 10 months ago
broken avatar :(
×
broken avatar :(
[UGX] Documentation Writer & Programmer
Location: usLos Angeles, CA
Date Registered: 23 August 2013
Last active: 3 years ago
Posts
1,322
Respect
Forum Rank
Zombie Colossus
Primary Group
UGX Team Member
My Groups
More
My Contact & Social Links
More
Personal Quote
(ง º ω º )ง u wont sum m8y?
Signature
Do not take life too seriously. You will never get out of it alive.
×
DidUknowiPwn's Groups
UGX Team Member
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Code Snippet
Plaintext
createPrimaryProgressBar();

updateBar(val, val2);

maps\_hud_util
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 6 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
Signature
×
MakeCents's Groups
Mapper Has released one or more maps to the UGX-Mods community.
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
anyone know how i would go about scripting a progress bar?

i have a trigger which requires you to press USE but i would prefer it to be a progress  bar and only trigger when a the progress bar is full?

Basically make this use a progress bar


Something like this...
Code Snippet
Plaintext
//get array of triggers to do this with and then thread PrgressBars() on each
ProgressBars(){
timer=3;
player = undefined;
while(timer>0){
self waittill("trigger", player);
player.PBar = player CreatePrimaryProgressBar();
player.PBar.color = ( .5, 1, 1 );
player.PBar UpdateBar( 0.01, 1/3 );
while( player UseButtonPressed() && distance(player.origin, self.origin)<100 && player isOnGround() && !player maps\_laststand::player_is_in_laststand() && timer>0){
wait(.1);
timer = timer-.1;
}
player.PBar destroyElem();
player.PBar = undefined;
}
self delete();
//do whatever here, open door or whatever
}

Not tested btw...
Last Edit: August 20, 2015, 01:55:38 am by MakeCents

 
Loading ...