buttonSetAction: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 14: Line 14:
'''Description:'''
'''Description:'''


Assign '''action''' to control with id '''idc''' of topmost user dialog.
Assign '''action''' to control with id '''idc''' of topmost user [[dialog]].


Action is any expression in this scripting language.
Action is any expression in this scripting language.
Line 23: Line 23:
'''Example:'''
'''Example:'''


'''buttonSetAction''' [100, "player [[exec]] ""reply.sqs"""]
'''buttonSetAction''' [100, "[[player]] [[exec]] ""reply.sqs"""]

Revision as of 16:28, 15 April 2006

back to COMREF

buttonSetAction [idc, action]


Operand types:

[idc, action]: Array

Type of returned value:

Nothing

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.


Example:

buttonSetAction [100, "player exec ""reply.sqs"""]