ctrlPosition

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Armed Assault version 1.00
  

Click on the images for descriptions

Introduced in

Game:
Armed Assault
Version:
1.00

Description

Description:
Returns the current position of 2D control as [x, y, w, h] array. For 3D control it returns relative [x,y,z].

Syntax

Syntax:
ctrlPosition controlName
Parameters:
controlName: Control
Return Value:
Array

Examples

Example 1:
_pos = ctrlPosition _control;

Additional Information

Multiplayer:
-
See also:
ctrlCreatectrlDeletectrlModelctrlSetModelctrlSetPositionctrlClassNamedisplayCtrlctrlModelScalectrlSetModelScalectrlModelDirAndUpctrlSetModelDirAndUp

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

Posted on May 22, 2017 - 23:02 (UTC)
Lucian
If the ctrl is part of a CtrlGroup the returned position is relative to the ctrlGroups position.