diff --git a/docs/objects/Basalt/setVariable.md b/docs/objects/Basalt/setVariable.md index c9a942b..773b9e5 100644 --- a/docs/objects/Basalt/setVariable.md +++ b/docs/objects/Basalt/setVariable.md @@ -1,17 +1,24 @@ -## basalt.setVariable + +# basalt.setVariable + This stores a variable which you're able to access via xml. You are also able to add a function, which then gets called by object events created in XML. -#### Parameters: -1. `string` a key name -1. `any` any variable +## Parameters + +1. `string` a key name +2. `any` any variable + +## Usage -#### Usage: * Adds a function to basalt. + ```lua basalt.setVariable("clickMe", function() basalt.debug("I got clicked") end) + ``` + ```xml