I am doing a function that checks if the mouse hovers over a region. If it does, and the cursor is not PickUp, then it should change to PickUp.
I am doing this:
function room_RepExec()
{
if (Region.GetAtRoomXY(mouse.x, mouse.y) == Region[1])
{
if (mouse.Mode != eModePickup)
{
mouse.Mode = eModePickup;
}
}
since the manual told me this is a correct example:
if (Region.GetAtRoomXY(player.x, player.y) == region[0])
Display("The player is not currently standing on a region.");
But AGS tells me that Region is not an array. What is wrong here?