Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.00

Description

Description:

Converts the position on a Dialogs Map to world coordinates.

The command is identical to ctrlMapScreenToWorld, but returns a 3D array: [x, y, z], with z always being 0.

Syntax

Syntax:map posScreenToWorld mapPos
Parameters:
Return Value:Position3D - World coordinates, with Z always set to 0.

Examples

Examples:
_worldPos = _Control posScreenToWorld [.5,.5]

Additional Information

See also: ctrlMapScreenToWorld, ctrlMapWorldToScreen, posWorldToScreen, screenToWorld
Multiplayer: 
Problems: 

Notes







Posted on April 7, 2007 - 10:03
LowFly
Notes:


You can get the screen coordinates by the VBS User Interface Event Handlers onMouseButtonDown, onMouseButtonUp, onMouseButtonClick, onMouseButtonDblClick.

The return Array is in 2-D, you can use it with all set-position commands.

_x = returnArray select 0;
_y = returnArray select 1;