function onEvent(name, value1, value2) 
if name == 'Drain' then
	drainValue = tonumber(value1);
	curHealth = getProperty('health');
		if drainValue == null then
		drainValue = 0.02;
		else 
		damageValue = 0.02 + drainValue;
		end
		if name == 'Drain' then
			if curHealth > damageValue then
			setProperty('health', curHealth - damageValue);
		
			end
		end
	end
end