(Formerly known as global function GetCharacterAt, which is now obsolete)
static Character* Character.GetAtScreenXY(int x, int y)
Checks if there is a character at SCREEN co-ordinates (X,Y).
Returns the character if there is, or null if there is not.
See the description of GetLocationName for more on screen co-ordinates.
NOTE: Any characters with the "Clickable" property set to false will not be seen
by this function.
Example:
if (Character.GetAtScreenXY(mouse.x, mouse.y) == cEgo) {
Display("The mouse is over the main character");
}
will display the message if the mouse cursor is over the EGO character
See Also: Hotspot.GetAtScreenXY,
Object.GetAtScreenXY,
Game.GetLocationName
|