//Checks whether a specific point is within the minigame region.
//@param Point3F position
//@return bool True if in region or region is undefined. False if outside region.
function Slayer_MiniGameSO::isPointInRegion(%this, %position)
{
%region = %this.region;
%x = getWord(%position, 0);
%y = getWord(%position, 1);
// %z = getWord(%position, 2);
return (%x >= getWord(%region, 0) && %x <= getWord(%region, 3) &&
%y >= getWord(%region, 1) && %y <= getWord(%region, 4));
}
Although, admins will still need to be able to do this, for like, warping inside the arena and modifying things.