Menu
Login
Language
DE EN FR ES IT CZ
Back

Changing Default Animation with Lua

  • #1, by elwan Wednesday, 08. April 2020, 23:59 6 years ago Quote
    Is it possible to write a script at the beginnig of a scene to change the Default Animation of different objects?
    Thanks

    Newbie

    26 Posts

  • #2, by afrlme Thursday, 09. April 2020, 03:11 6 years ago Quote
    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.

    Imperator

    7290 Posts

  • #3, by elwan Thursday, 09. April 2020, 16:26 6 years ago Quote
    Thank you for another wise advise.
    Looking at lua documentation I was afraid of that, but you know so many tricks...

    Newbie

    26 Posts

  • #4, by afrlme Thursday, 09. April 2020, 18:52 6 years ago Quote
    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.

    Imperator

    7290 Posts