ctrlAngle: Difference between revisions

From Bohemia Interactive Community
m (Some wiki formatting)
m (return value formatted for HEMTT)
 
Line 12: Line 12:
|s1= [[ctrlAngle]] control
|s1= [[ctrlAngle]] control


|p1= control : [[Control]]  - picture control
|p1= control: [[Control]]  - picture control


|r1= [[Array]] of [[Number]]s in format [angle, centerX, centerY]
|r1= [[Array]] with [angle, centerX, centerY]
* angle: [[Number]]
* centerX: [[Number]]
* centerY: [[Number]]


|x1= <sqf>ctrlAngle _control;</sqf>
|x1= <sqf>ctrlAngle _control;</sqf>

Latest revision as of 19:04, 3 May 2026

Hover & click on the images for description

Description

Description:
Gets rotation info of a control set as ST_PICTURE. Supported control types:
Groups:
GUI Control - Positioning

Syntax

Syntax:
ctrlAngle control
Parameters:
control: Control - picture control
Return Value:
Array with [angle, centerX, centerY]

Examples

Example 1:
ctrlAngle _control;

Additional Information

See also:
ctrlSetAngle

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note