This thread is a few years old. Some details may refer to an earlier version of Visionaire Studio. Current tutorials
... because I am having difficulty understanding how to get the information I need out of the documentationHa! You are not the first. Welcome to the club...
startAnimation("Characters[char1].CharacterCurrentOutfit.OutfitCharacterAnimations[anim1]")startAnimation(Characters["char1"].CharacterCurrentOutfit.OutfitCharacterAnimations["anim1"])function playCharAnim(c, a)
startAnimation(Characters[c].CharacterCurrentOutfit.OutfitCharacterAnimations[a])
endplayCharAnim("Tom", "pick-up_(generic)")
getObject("Characters[name]"):setValue(VCharacterCurrentOutfit, getObject("Characters[name].CharacterOutfits[name]"))anim = "blink" -- an example Lua variable
startAnimation("game.CurrentCharacter.CharacterCurrentOutfit.OutfitCharacterAnimations[" .. anim .. "]")the next one that I thought made sense (and also was suggested by @sebastian and @alex if I didn't get it wrong) doesn't work: startAnimation("Characters[char1].CurrentOutfit.CharacterAnimations[anim1]",true) Seems I have to reference it as CharacterCurrentOutfit and not as CurrentOutfit, and same with OutiftCharacterAnimations instead of CharacterAnimations. Any idea why this is happening? Does this have anything to do with the parentheses being outside the path? Perhaps these startAnimation/stopAnimation don't work with shorthands?
all in all its doable if you got yourself into the vast fields of the datastructure and its (sometimes confusing) methodsAye mate that's something we would all like to see implemented. Simon said it's difficult to implement & is a lot of work - hopefully he will manage to sort it out someday.
The greatest would be to have some autocomplete context menu popping up when typing lua which makes suggestions, etc like in modern IDEs![]()