new b5.A_Sound(sound, action){b5.A_Sound}
actions/generic/audio.js, line 31
Action that plays, pauses or stops a sound then exits
Created actions should be added to an actor or scenes actions list to be processed
For a complete overview of Actions see Booty5 Actions Overview
Name | Type | Description |
---|---|---|
sound |
string:b5.Sound |
Path to or instance of sound resource |
action |
string |
Action to perform on sound (play, pause or stop) |
Returns:
Type | Description |
---|---|
b5.A_Sound | The created action |