Changing Default Animation with Lua

  • #1, by elwanWednesday, 08. April, 23:59 4 months ago
    Is it possible to write a script at the beginnig of a scene to change the Default Animation of different objects?
    Thanks

    Newbie

    24 Posts


  • #2, by afrlmeThursday, 09. April, 03:11 4 months 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

    6817 Posts

  • #3, by elwanThursday, 09. April, 16:26 4 months ago
    Thank you for another wise advise.
    Looking at lua documentation I was afraid of that, but you know so many tricks...

    Newbie

    24 Posts

  • #4, by afrlmeThursday, 09. April, 18:52 4 months 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

    6817 Posts

Write post