I need tile which will trigger smth when player comes close enough to this tile. For exaple, if player within 160 radius then do smth.
Does it requers an extra script file or its possible to do in "IF"-trigger tile?
radiusTable = { 	[1] = { 		x = 160, 		y = 160, 		r = 160, 		t = 'roflolz0r' 	}, 	[2] = { 		x = 480, 		y = 320, 		r = 160, 		t = '/TeeHee' 	} } addhook('move', 'moveHook') function moveHook(id, x, y) 	for k, v in pairs(radiusTable) do 		if circleArea(x, y, v.x, v.y, v.r) then 			parse('trigger '..v.t) 		end 	end end function circleArea(x,y,cx,cy,r) return (x-cx)^2+(y-cy)^2 <= r^2 end --http://www.unrealsoftware.de/forum_posts.php?post=271595&start=0#post271627