@LabelIndex 15622
@StringIndex 0
class 0 warrior_disguise : warrior {
parameter:
	int	silhouette = 1020130;
	string	ai_type = "warrior";

handler:
	EventHandler CREATED() {
		myself.i_ai2 = 0;
	}

	EventHandler ATTACKED(attacker,damage) {
		if( myself.i_ai2 == 0 ) {
			myself::CreateOnePrivateEx(silhouette,ai_type,0,0,gg::FloatToInt(myself.sm.x),gg::FloatToInt(myself.sm.y),gg::FloatToInt(myself.sm.z),0,1000,gg::GetIndexFromCreature(attacker),0);
			myself.i_ai2 = 1;
			myself::Despawn();
		}
	}

}
