Open main menu
Home
Random
Log in
Settings
About AddOn Studio
Disclaimers
AddOn Studio
Search
Editing
WoW:RestrictedEnvironment
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Control methods == Additional methods are available as part of the control table; allowing functionality somewhat resembling proper functions within the protected environment. ; control:CallMethod("methodName", ...) : insecurely calls methodName method of the restricted environment's owner. ; control:Run("body", ...) : executes Lua code in body with the provided arguments; self is the handle of the environment's owner. ; control:RunFor(handle, "body", ...) : executes Lua code in body with the provided arguments; self is the argument value. ; control:RunAttribute("snippetAttr", ...) : executes the method contained in the snippetAttr attribute of the restricted environment owner with self, ... as arguments. ; control:ChildUpdate("snippetid", message) : executes the contents of "_childupdate-''snippetid''" (or, if that attribute is nil/false, "_childupdate"), on all protected children (and children of children) of the restricted environment owner with (self, scriptid, message) arguments. {{API Trail Secure}}
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)
Close
Loading editor…