first option:
function inArea( pos1, pos2, size )
x1, y1, _ = getElementPosition ( pos1 )
x2, y2, _ = getElementPosition ( pos2 )
local dis = getDistanceBetweenPoints2D( x1, y1, x2, y2 )
return size > dis
end
for i, pl in ipairs ( getElementsByType ( "player" ) ) do
if inArea( pl, marker, getMarkerSize ( marker ) ) then
--
end
end
Then it will be possible to use a marker of any type, but the input / output events from the marker may not work correctly ( It does not seem important to me )
Let me remind you that a bug with transparency only on the marker of the type "checkpoint"