Narrat Docs
Search
⌃K
Narrat Docs
Search
⌃K
Narrat
Functions Documentation
All commands list
Save Commands
String commands
Text Commands
Random Generation
Logical Operators
Math commands
Jump
Choice
Modifying variables
If
Left-side Viewport commands
Clear Dialog
Audio commands (music and sounds)
Play
Stop
Pause
Wait
Skills Commands
Notify
Stats Commands
Text Field
Features
Quests
Transitions
Inventory
HUD Stats
Screens
Skills System
Saving and Reloading
Playing Audio
Functions
Guides
Getting Help
Language syntax and expressions
Using items
Updating narrat
Getting Started
Old Template method
Config files
Useful Links
Theming the game and UI
Installing Narrat in a web app
Editing a narrat game
Building and exporting your game
Publishing on Steam (Steamworks integration)
Examples
Example Config
Example narrat script
Powered By GitBook

Play

Play Function

The play function plays audio, either music or sounds.
See playing audio for more info on how to setup the audio system
Syntax: $play [mode] [audioName] [channel (optional)]
  • mode: music , ambiant or sound
  • channel: A number indicating which channel to play audio on. Defaults to 0. Can be used to play multiple musics in parallel on the same mode

Example

play music musicName 0
Functions Documentation - Previous
Audio commands (music and sounds)
Next
Stop
Last modified 8mo ago
Copy link
On this page
Play Function
Example