Gets the value of the player's absolute (screen-relative) position. You must specify the component that you want to check, eg. "Pos Y" to check the Y-position.

Format: ScreenPos [component]

Arguments:

Return type: float

Error conditions: none

Details:

For "ScreenPos X", the value is relative to the left of the screen (value 0). Negative is left, positive is right. For "ScreenPos Y", the value is relative to the top of the screen. Negative is above the screen, positive is downward.

Example:

trigger1 = ScreenPos Y = [0,239]
; True when the player's is in the screen's vertical extent.