Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.00

Description

Description:Plays music defined in CfgMusic (see CfgMusic in the VBS3 Developer Reference).

Syntax

Syntax:playMusic name
Parameters:
  • name : String - Music to play.
Return Value:Nothing

Alternative Syntax

Syntax:playMusic [name, position]
Parameters:
  • name: String - Class name of the sound to play. If empty (""), the currently played music stops.
  • position: Number - Time position in the sound (in seconds).
Return Value:Nothing

Examples

Examples:
playMusic "musicname"
playMusic ["Track13", 30]

Additional Information

See also: fadeMusic, playSound, say, createSoundSource
Multiplayer: 
Problems: 

Notes