Hi, there is only one script running at a time, the only way to share lua functions
is to create a separate lua file and use "dofile("customFunctions.lua")" to link it.
But for sharing variables it's not possible without doing c++, I taught I did something but I probably forget,
lets add it to the script todo list.
If you create a dll plugin, there is 2 ways to share variables :
- create a custom behavior with some variables, you can then get/set these variables from script using :
getBehaviorVariable(object, behaviorId, « variableName »)
setBehaviorVariable(object, behaviorId, « variableName », value)
- create custom script functions using MScriptContext :
http://www.maratis3d.org/engine_docs/cl
ntext.html
Thanks