Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
Collapse

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. GSC Waitill score / points increases

GSC Waitill score / points increases

Scheduled Pinned Locked Moved BO2 Modding Support & Discussion
2 Posts 2 Posters 199 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Lewis5441undefined Offline
    Lewis5441undefined Offline
    Lewis5441
    wrote on last edited by
    #1

    Does anyone know the waittill for when a player's score / points increase? Thanks in advance.

    TheHiddenHourundefined 1 Reply Last reply
    0
    • TheHiddenHourundefined Offline
      TheHiddenHourundefined Offline
      TheHiddenHour Contributor
      replied to Lewis5441 on last edited by
      #2

      Lewis5441 There's a couple ways of checking for score changes but I'm unaware of a notify for it. Here's a simple method though.

      scoreMonitor() {
      	self endon("disconnect");
      	self endon("game_ended");
      	
      	// Setup variables required for monitoring score 
      	currentScore = self.pers["score"];
      	previousScore = currentScore;
      	
      	for(;;) {
      		// Check for score change 
      		currentScore = self.pers["score"];
      		if(currentScore != previousScore) {
      			// Update previous score 
      			previousScore = currentScore;
      			// Insert your code here 
      			self iprintln(self.name + "'s score has changed!");
      		}
      		
      		wait 0.05;
      	}
      }
      
      1 Reply Last reply
      1

      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Donate