registerOutputEvent(fxDTSBrick,"ifPlayerScale","Scale PlayerData",1);
registerInputEvent(fxDTSBrick, "VariableTrue", "Self fxDTSBrick\tPlayer Player\tClient GameConnection\tMiniGame MiniGame",1);
registerInputEvent(fxDTSBrick, "VariableFalse", "Self fxDTSBrick\tPlayer Player\tClient GameConnection\tMiniGame MiniGame",1);

function fxDTSBrick::VariableTrue(%this,%client)
{
	$inputTarget_self = %this;
	$inputTarget_client = %client;
	$inputTarget_player = %client.player;
	$inputTarget_miniGame = getMiniGameFromObject(%this);
	%this.processInputEvent("VariableTrue", %client);
}

function fxDTSBrick::VariableFalse(%this,%client)
{
	$inputTarget_self = %this;
	$inputTarget_client = %client;
	$inputTarget_player = %client.player;
	$inputTarget_miniGame = getMiniGameFromObject(%this);
	%this.processInputEvent("VariableFalse", %client);
}

function fxDTSBrick::ifPlayerScale(%this,%scale,%client)
{
	if(%client.Player.getDataScale()==%scale)
	{
		%this.variableTrue(%client);
	}
	else
	{
		%this.variableFalse(%client);
	}
}