Play Music
Play Music
- Group
- Audio
- In the node menu
- Audio › Play Music
- Where it can be used
- Scheme graphs
- Tags
- Also found as
- Stop Music
What it does
Section titled “What it does”Play Music starts a clip on the music channel or the ambience channel of this scheme. It plays in a loop until the scheme ends or another Play Music of the same scheme changes or stops it. The flow goes on through Out at once.
A change fades: the new clip comes in while the old one goes out, over the Fade (sec) time.
Example
Section titled “Example”Play Music
Music: mus_feast
Only if Conspirator is a player
When to use it
Section titled “When to use it”Use it to set the mood of a scene: a feast, a road, a siege. Use the Ambience channel for wind, a crowd or a fire under it. Each scheme has one music track and one ambience track at a time.
To stop the music, use the same node with no clip. The search offers it as Stop Music. Use Play Sound instead for a short sound that plays once.
Good to know
Section titled “Good to know”- A clip that already plays goes on without starting again.
- An open dialogue with music of its own plays over the scheme’s music.
- With no clip, the card reads “Stops this scheme’s music”, or “Stops this scheme’s ambience” on the Ambience channel.
- With Only If Player Is and an actor that is not a player, or not available, nothing changes and the flow goes on.
- The music is not saved with the game. After a load, the scheme has to start it again.
Settings
Section titled “Settings”| Label | Draft key | Type | Default | Shown if, tooltip and notes |
|---|---|---|---|---|
| Channel | Channel |
| "Music" | Music or Ambience. Each scheme has one of each. |
| Clip | Clip | asset path (AudioClip) | null (none) | Plays in a loop. When it plays already it goes on without starting again. Empty: this scheme's music (or ambience) stops.
|
| Volume | Volume | number | 1 |
|
| Audience | Audience |
| "TakingPart" | Every Player: the music always plays. Only If Player Is: it plays only when the actor below is a player. Players Taking Part: it plays for the conspirator, the target and the accomplices when a player plays them.
|
| Fade (sec) | Fade | number | 1 | Seconds the change takes: the new clip fades in while the old one fades out, or the music fades out.
|
| Player Is | Listener | ActorRef | "Conspirator" | Shown if Audience = OnlyIfPlayerIs The music plays only when a player plays this actor. When the actor is not available nothing changes and the flow continues. |
Outputs
Section titled “Outputs”- Out
In a draft
Section titled “In a draft”"type""Play Music"- Other
"type"names "Stop Music""set"keysChannel,Clip,Volume,Audience,Fade,Listener"then"keys"Out"
"<alias>": { "type": "Play Music", "then": "<alias>"}