Create a condition that goes off when objective is captured

This is my first time using workshop so forgive me if this is a rookie question

So I’m trying to create a condition that goes off when the control point is captured by a team, but only at that very instant. I want to stop the condition from going off over and over again while the team is in control of the objective. The only condition I can find to do this is

Control Mode Scoring Team == True

But as far as I can tell this will continuously run the action over and over again, and run the action over and over again for both teams if neither team is in control. What would be the best way to limit the event?

If it matters, I want that event to go off each time the team captures the point. So if the team caps, then loses control, then caps again, the effect goes off again

try this:

variables
{
	global:
		0: scoringTeam
}

rule("Rule 1")
{
	event
	{
		Ongoing - Global;
	}

	actions
	{
		Global.scoringTeam = All Teams;
	}
}

rule("Rule 2")
{
	event
	{
		Ongoing - Global;
	}

	conditions
	{
		Global.scoringTeam != Control Mode Scoring Team;
	}

	actions
	{
		Global.scoringTeam = Control Mode Scoring Team;
		If(Control Mode Scoring Team != All Teams);
			Big Message(All Players(All Teams), Custom String("{0} has captured the point!", Global.scoringTeam));
		End;
	}
}
2 Likes