The question may sound stupid, but i can't figure how to get a world variable from plugin inside?
What i do is:
1. Set variable `var` to `test` in the world properties-window
2. type `/print(GetVariable('var'))` in command input window (`/` is the script prefix)
I get `test` as expected
3. After that, i install some plugin with
4. The output i get is `nilnil`, and expected was `testnil` or `testtest`
So, what am i doing wrong?
What i do is:
1. Set variable `var` to `test` in the world properties-window
2. type `/print(GetVariable('var'))` in command input window (`/` is the script prefix)
I get `test` as expected
3. After that, i install some plugin with
<script>
<![CDATA[
Note(world.GetVariable('var'), GetVariable('var'))
]]>
</script>4. The output i get is `nilnil`, and expected was `testnil` or `testtest`
So, what am i doing wrong?