screenToWorld

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 2 version 1.00
  

Click on the images for descriptions

Introduced in

Game:
Arma 2
Version:
1.00

Description

Description:
Returns the position on landscape (PositionAGL) corresponding to the given point on screen (in UI coordinates).

Syntax

Syntax:
screenToWorld screen
Parameters:
screen: Array - Screen position [x,y] (see SafeZone for more info)
Return Value:
Array - PositionAGL, world position on surface [x,y,0]

Examples

Example 1:
_wPos = screenToWorld [0.5,0.5];

Additional Information

Multiplayer:
-
See also:
SafeZoneworldToScreen

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section