Arma 3 Scripting

setMusicEventHandler

  • Deprecated
  • Arma 3 v1.02

Command · also in Sounds · Markdown · JSON · original wiki page

Warning

This command is deprecated. Use addMusicEventHandler instead.

Description

Sets given music track event handler. Will overwrite other music event handlers.

Caution

This information is obsolete. Reason: Use addMusicEventHandler instead as it can stack music event handlers.

Syntax

setMusicEventHandler [type, function]

Parameters:

Returns: Nothing

Examples

Example 1

setMusicEventHandler ["MusicStart", "hint str _this"];

Example 2

setMusicEventHandler ["MusicStop", "hint str _this"];

See also

addMusicEventHandler · removeMusicEventHandler · playMusic · removeAllMusicEventHandlers