Thx for your answers. As I had to determine, it isnt necassary to check if an animation is allready active before you starting it. *faceplam*
But on the other hand side some lua/visionaire scripting things I dont understand.
Why I cant simply check an value by doing this:
local g_resolution = getObject("Values[value_resolution]")
if g_resolution > 2 then
...
end
Why I have to do this instead:
local g_resolution = getObject("Values[value_resolution]")
if g_resolution.Int > 2 then
...
end
I though values are integers. The same thing with:
ActiveAnimations["example"].Active
Where I can find a wiki or a tutorial about things like .Int or .Active?
I didnt find something about in the visionaire wiki. Sry for that stupid question, its the really first time I try to use more lua in my project (without only copy-pasting other scripts)