Login / Registrieren
DE EN FR ES IT CZ
Zurück Nach oben

Changing Default Animation with Lua

  • #1, by elwan 6 years ago Zitieren
    Is it possible to write a script at the beginnig of a scene to change the Default Animation of different objects?
    Thanks
  • #2, by afrlme 6 years ago Zitieren
    Hmm. both luadocs page & the wiki data structure page say it isn't scriptable. You could just leave the default animation empty & instead create a called by other action block that you  can call in the at begin of scene action block. You just need to add some if condition/value type queries into the called by other action block to determine which animation to play with the play animation action part.
  • #3, by elwan 6 years ago Zitieren
    Thank you for another wise advise.
    Looking at lua documentation I was afraid of that, but you know so many tricks...
  • #4, by afrlme 6 years ago Zitieren
    Just because something says it isn't scriptable, doesn't mean that it isn't. It usually just means that the change won't be saved in the save game data or might require a scene/animation restart, etc.