GSC Waitill score / points increases

Topic created · 2 Posts · 71 Views
  • Does anyone know the waittill for when a player's score / points increase? Thanks in advance.

  • @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;
    	}
    }
    
Log in to reply