Sleep Function / How To Fade

  • #1, by SpellbreakerThursday, 16. April 2015, 20:47 9 years ago
    Moin moin,

    ich würde gerne ein Skript ausführen wenn die Hauptmenü-Kulisse geladen wird, um einige Objekte zu bewegen und zu faden. Leider finde ich in der Doku keinerlei Sleep funktion oder ähnliches, um die Geschwindigkeit eines fadens (ObjectVisibility) zu kontrollieren.

    Kann mir jemand helfen?

    MfG,

    Spellbreaker

    Newbie

    5 Posts


  • #2, by EinzelkämpferThursday, 16. April 2015, 21:31 9 years ago
    Versuche "ObjectDestVisibility " + "ObjectTimeToDestVisibility" anstatt "ObjectVisibility" zum Ein-/Ausblenden. Was eine Sleep-/Pause-Funktion angeht, bin ich spontan aber überfragt, denn das Skript wird vermutlich nicht warten, bis das Ausblenden erledigt ist, bevor es mit der nächsten Anweisung fortfährt.

    Newbie

    81 Posts

  • #3, by afrlmeThursday, 16. April 2015, 21:43 9 years ago
    There's an action part for setting the object visibility. If you want to script it with Lua then you need to script 2 different fields, or use the new to() function, which may or may not work in the current public build.

    I recommend using the action part as it's just simpler all round.

    example of to function...
    Objects["annoying_oap"]:to(3000, {Visibility = 0}) -- fade object "annoying_oap" to 0% opacity over 3 seconds.
    


    What do you mean by a sleep function?

    P.S: why is the title of thread in English, while the text is in German?

    Imperator

    7278 Posts