Changing Default Animation with Lua

  • #1, by elwanWednesday, 08. April 2020, 23:59 4 years ago
    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 afrlmeThursday, 09. April 2020, 03:11 4 years ago
    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

    7278 Posts

  • #3, by elwanThursday, 09. April 2020, 16:26 4 years ago
    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 afrlmeThursday, 09. April 2020, 18:52 4 years ago
    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

    7278 Posts