(Formerly known as global function GetObjectAt, which is now obsolete)
static GameObject* Object.GetAtScreenXY(int x, int y)
Checks if there is a room object at SCREEN co-ordinates (X,Y).
Returns the object if there is, or null if there is not.
See the description of GetLocationName for more on screen co-ordinates.
Example:
if (Object.GetAtScreenXY(211,145) == oRock) {
// code here
}
will execute the code only if object oRock is on the screen coordinates 211,145.
See Also: Hotspot.GetAtScreenXY,
Game.GetLocationName
|