addPublicVariableEventHandler

From Bohemia Interactive Community
Revision as of 19:34, 21 December 2007 by Raedor (talk | contribs) (init)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
-wrong parameter ("Arma") defined!-1.09
Hover & click on the images for description

Description

Description:
If the EH detects a change via publicVariable on the given variable, code will be executed. The following arguments are transferred to the code: _this select 0: variable name _this select 1: new variable value
Groups:
Uncategorised

Syntax

Syntax:
varName addPublicVariableEventHandler code
Parameters:
varName: String
code: Code
Return Value:
Nothing

Examples

Example 1:
"publicThis" addPublicVariableEventHandlere {hint ((_this select 0) + " has been updated to: " + str (_this select 1))}

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