#include <entity>
#include <general>

new width;
new height;
new image[20];
main()
{
	if (FirstRun())
	{
		new param;
		param = GetParam("this");
		if (param == 'a')
			image = "o_triggera";
		if (param == 'b')
			image = "o_triggerb";
		if (param == 'c')
			image = "o_triggerc";
			
		width = GetWidth(image);
		height = GetHeight(image);
	}
	
	if (isActive("this"))
	{
		new x = GetX("this");
		new y = GetY("this");
		SetCollisionRect("this", 0, false, x, y, x + height, y + width);
		if (Collide("player1", "this")) {
			SetPushedFlag("this", true);
		} else {
			SetPushedFlag("this", false);
		}
	}
}





