
Posts
480
Respect
48Add +1
Forum Rank
Perk Hacker
Primary Group
Donator ♥
Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Has released one or more maps to the UGX-Mods community. |
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
![]() BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
Title says it all, how would I check the total time a player reloads, fire, gets hit, downs, how many revives, etc.
//self.stats["stat"] //for example:
self.stats["downs"]
//you would thread TrackStats() somewhere
TrackStats(){
flag_wait( "all_players_connected" );
players = get_players();
for(i=0;i<players.size;i++){
players[i] thread Tracker("reload_start");
// players[i] thread Tracker("stat"); //add more stat = what you notify when what you want to track happens
}
}
Tracker(stat){
self.stats[stat] = 0;
while(1){
self waittill( stat );
self.stats[stat] = self.stats[stat] + 1;
wait(.1);
// iprintlnbold(stat + " " + self.stats[stat]); //uncomment to see if it is working
}
}
self waittill("reload");