Arma 3 Scripting

setMusicEffect

  • Arma 3 v0.50
  • First in Operation Flashpoint: Elite v1.00

Command · also in Triggers, Waypoints · Markdown · JSON · original wiki page

Description

Defines a music track played on activation. If another track is playing already, this will stop it and start the new track.

Track is a subclass name of CfgMusic. In addition, "$STOP$" (stops the current music track) or use playMusic "". When used in a trigger, the track starts on activation but does not automatically stop on deactivation.

Syntax

Syntax 1

trigger setMusicEffect track

Parameters:

Returns: Nothing

Syntax 2

waypoint setMusicEffect track

Parameters:

Returns: Nothing

Examples

Example 1

_trigger setMusicEffect "Track1";

Example 2

[_group1,1] setMusicEffect "$STOP$";

See also

createTrigger · setSoundEffect · setTitleEffect