buttonSetAction: Difference between revisions

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


| ofpr |= Game name


<h2 style="color:#000066"> '''buttonSetAction [''idc'', ''action'']'''</h2>
|1.5|= Game version
____________________________________________________________________________________________


| Assign action to control with id idc of topmost user [[dialog]]. Action is any expression in this scripting language. Can be used for buttons and active texts. |= Description
____________________________________________________________________________________________


'''Operand types:'''
| '''buttonSetAction''' |= Syntax


'''[idc, action]:''' [[Array]]
|p1= [idc, action]: [[Array]] |= Parameter 1


'''Type of returned value:'''
| [[Nothing]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>buttonSetAction [100, "[[player]] [[exec]] ""reply.sqs"""]</pre> |= Example 1
____________________________________________________________________________________________


[[Nothing]]
|  |= See also


'''Compatibility:'''
}}


Added in version '''1.50'''
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


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


Assign '''action''' to control with id '''idc''' of topmost user [[dialog]].
<h3 style="display:none">Bottom Section</h3>


Action is any expression in this scripting language.
[[Category:Scripting Commands|BUTTONSETACTION]]
 
[[Category:Scripting Commands OFP 1.96|BUTTONSETACTION]]
Can be used for buttons and active texts.
[[Category:Scripting Commands ArmA|BUTTONSETACTION]]
 
 
'''Example:'''
 
'''buttonSetAction''' [100, "[[player]] [[exec]] ""reply.sqs"""]

Revision as of 23:14, 1 August 2006

Hover & click on the images for description

Description

Description:
Assign action to control with id idc of topmost user dialog. Action is any expression in this scripting language. Can be used for buttons and active texts.
Groups:
Uncategorised

Syntax

Syntax:
buttonSetAction
Parameters:
[idc, action]: Array
Return Value:
Nothing

Examples

Example 1:
buttonSetAction [100, "[[player]] [[exec]] ""reply.sqs"""]

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