• Hi Guest!

    We are extremely excited to announce the release of our first Beta1.1 and the first release of our Public AddonKit!
    To participate in the Beta, a subscription to the Entertainer or Creator Tier is required. For access to the Public AddonKit you must be a Creator tier member. Once subscribed, download instructions can be found here.

    Click here for information and guides regarding the VaM2 beta. Join our Discord server for more announcements and community discussion about VaM2.
  • Hi Guest!

    VaM2 Resource Categories have now been added to the Hub! For information on posting VaM2 resources and details about VaM2 related changes to our Community Forums, please see our official announcement here.

Solved Auto play Audio on scene load

ChampionWhisky

New member
Joined
May 29, 2022
Messages
17
Reactions
4
So im creating a scene where i want the audio ive chosen to immediately start playing and loop the moment the scene loads in.
i can do it with triggers and usually i would but this time i just want it on from the start with no extra steps.

Any ideas?
 
There's literally a logic brick called EventSceneLoad in MacGruber's logic bricks. It does whatever you trigger once the scene has loaded.
 
Upvote 0
Solution
i can do it with triggers and usually i would but this time i just want it on from the start with no extra steps.

What is "no extra step"? Triggering something without needing to trigger it? :p
That not possible haha.

There are several ways to start something when a scene starts:
  • Scene Animation actions and triggers (have the scene animation at least 1sec long and add a set of actions).
  • As Slimer said, Logic Bricks
  • Or VAMStory Director
 
Upvote 0
There's literally a logic brick called EventSceneLoad in MacGruber's logic bricks. It does whatever you trigger once the scene has loaded.
You absolute beauty. its worked perfectly.

in case anyone wants to repeat this, this is how i did it.
load audio into scene audio
add audio source from atom menu
add Macgruber.eventaudioqueueEmpty to plugins
Actions on trigger
settings are then as follows
AudioSource,AudioSource,PlayNow,URL,Web, (chosen music)
added a loop in there too
 
Upvote 0
What is "no extra step"? Triggering something without needing to trigger it? :p
That not possible haha.

There are several ways to start something when a scene starts:
  • Scene Animation actions and triggers (have the scene animation at least 1sec long and add a set of actions).
  • As Slimer said, Logic Bricks
  • Or VAMStory Director
The idea was that loading the scene was the "trigger" of sorts. i didnt want to populate my scene with too many buttons. Already have 20 for the animations and i didnt want it to get too cluttered
 
Upvote 0
The AudioSource not having like an "automated" startup, you have no choice to start it yourself.

Now if what you meant by "trigger" was "button", indeed you can do that without a button. You will have to rely on one of the suggestions above.
 
Upvote 0
The AudioSource not having like an "automated" startup, you have no choice to start it yourself.

Now if what you meant by "trigger" was "button", indeed you can do that without a button. You will have to rely on one of the suggestions above.
What SlimerJspud said was spot on and works great
 
Upvote 0
Back
Top Bottom