From Bohemia Interactive Community
Hover & click on the images for description
Description
- Description:
- Sets the rotation of an ST_PICTURE control. Rotation will be done within the control boundaries, so if the X and Y are given off center, the picture may get clipped by the control boundaries. Only requires ctrlCommit when fourth parameter is set to false. Procedural textures filled controls do not rotate.
- Groups:
- GUI Control
Syntax
- Syntax:
- control ctrlSetAngle [angle, centerX, centerY, now]
- Parameters:
- control: Control - picture control
- angle: Number - Rotation angle (clockwise)
- centerX: Number - Rotation center X in range 0 to 1. Control center is 0.5
- centerY: Number - Rotation center Y in range 0 to 1. Control center is 0.5
- since
1.78 - now: Boolean - (Optional, default true) If false, control will wait for ctrlCommit input for result to apply
- Return Value:
- Nothing
Examples
- Example 1:
_control ctrlSetAngle [25, 0.5, 0.5];
- Example 2:
- Example 3:
Additional Information
- See also:
- ctrlAngle
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here!
Add Note