ctrlPosition: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
 
mNo edit summary
Line 1: Line 1:
[[Category:Scripting Commands|CTRLPOSITION]]
{{Command|= Comments
[[Category:Scripting Commands ArmA|CTRLPOSITION]]
____________________________________________________________________________________________


| arma |= Game name


<h2 style="color:#000066">''' ctrlPosition ''control'''''</h2>
|2.5|= Game version
____________________________________________________________________________________________


| Returns the current position of control as [x, y] array. |= Description
____________________________________________________________________________________________


'''Operand types:'''
| '''ctrlPosition''' control |= Syntax


'''control''': [[Control]]
|p1= control [[Control]] |= Parameter 1


'''Type of returned value:'''
| [[Array]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>_pos = ctrlPosition _control</pre> |= Example 1
____________________________________________________________________________________________


[[Array]]
|  |= See also


'''Compatibility:'''
}}


Version 2.50 required.
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


'''Description:'''
<!-- Note Section END -->
</dl>


Returns the current position of '''control''' as [x, y] array.
<h3 style="display:none">Bottom Section</h3>


 
[[Category:Scripting Commands|CTRLPOSITION]]
'''Example''':
[[Category:Scripting Commands ArmA|CTRLPOSITION]]
 
_pos = '''ctrlPosition''' _control

Revision as of 23:15, 1 August 2006

-wrong parameter ("Arma") defined!-2.5
Hover & click on the images for description

Description

Description:
Returns the current position of control as [x, y] array.
Groups:
Uncategorised

Syntax

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

Examples

Example 1:
_pos = ctrlPosition _control

Additional Information

See also:
See also needed

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

Notes

Bottom Section