useBar = createPrimaryProgressBar( 25 );
useBarText = createPrimaryProgressBarText( 25 );
useBarText setText( &"MPUI_CHANGING_KIT" ); //This is the Text that will show
useBar updateBar( 0, 1 / duration ); //I think It increase evert 0.05 sec and with 1 every time. I think you have to edite somehere yourself
for ( waitedTime = 0; waitedTime < duration && isAlive( self ) && !level.gameEnded; waitedTime += 0.05 )
wait ( 0.05 );
useBar destroyElem();
useBarText destroyElem();
}
I did this:
Code:
omaUseBar()
{
self endon( "disconnect" );
useBar = createPrimaryProgressBar( 25 );
useBarText = createPrimaryProgressBarText( 25 );
useBarText setText(" + level.alliescurrentlevel + "/" + self.gunlist.size + "); //This is the Text that will show
useBar updateBar(self.allieslevelup = level.alliescurrentlevel); //I think It increase evert 0.05 sec and with 1 every time. I think you have to edite somehere yourself
for ( waitedTime = 0; waitedTime < duration && isAlive( self ) && !level.gameEnded; waitedTime += 0.05 )
wait ( 0.05 );
useBar destroyElem();
useBarText destroyElem();
}
UseBar()
{
self endon( "disconnect" );
while (1) {
self notifyOnPlayerCommand("5", "+actionslot 2");
self waittill("5");
useBar = createPrimaryProgressBar( 25 );
useBarText = createPrimaryProgressBarText( 25 );
useBar updateBar( 10 / 20); // This is the value, The max is 20 and you get 10 off 20. So I think you just add your things in there.
}
}
"This is the value, The max is 20 and you get 10 off 20. So I think you just add your things in there."
max lvl is 60, the rest you can get from the first post.
plz add it because this is pretty difficult and I have not mutch time (alot of things to do)
plz do it
Originally Posted by eliteCVDelite
"This is the value, The max is 20 and you get 10 off 20. So I think you just add your things in there."
max lvl is 60, the rest you can get from the first post.
plz add it because this is pretty difficult and I have not mutch time (alot of things to do)
plz do it
Well, I got alot to do too^^
Helping people, and gone teatch one peron today...
Originally Posted by Jorndel
Well, I got alot to do too^^
Helping people, and gone teatch one peron today...