Issue with script in animations

  • #1, by shin-megamiSunday, 31. October 2021, 22:11 2 years ago
    Hi!

    When I run the game from the editor, everything ist okay, but when I export it to a Windows Build, LUA-Scripts which have been placed in the animations of a character don't seem to load.
    Have I forgotten something or is it a bug?

    Thanks in advance!

    Newbie

    11 Posts


  • #2, by afrlmeMonday, 01. November 2021, 12:25 2 years ago
    What sort of scripts are you writing inside of your character animations? Can you provide an example of one? & are none of them being executed?

    Imperator

    7278 Posts

  • #3, by shin-megamiMonday, 01. November 2021, 15:19 2 years ago
    Hi afrlme!

    I tried with a simple script: works fine in the editor, but the sound won't get played when I'm exporting the game to a windows .exe file.

    Thanks for the help!

    Newbie

    11 Posts

  • #4, by afrlmeMonday, 01. November 2021, 15:56 2 years ago
    Ah ok, I see the issue. You need to include vispath in the link to the sound file to tell the engine to include it when you export the game.

    example: "vispath:path to sound folder/example.ogg"

    Imperator

    7278 Posts

  • #5, by shin-megamiMonday, 01. November 2021, 17:14 2 years ago
    Thanks a lot! It works and you're awesome!

    Newbie

    11 Posts

  • #6, by afrlmeMonday, 01. November 2021, 17:26 2 years ago
    No problem. At least now you know what you need to do to include sound files. wink

    Imperator

    7278 Posts