addMusicEventHandler [type, function]

Operand types

[type, function]: Array

Type of returned value

Description

Add music track event handler.
Returns id of the handler or -1 when failed.

Possible types:

  • "MusicStart"

  • "MusicStop"

Used In

Arma3

Example

_ehID = addMusicEventHandler ["MusicStart", {hint str _this}];

_ehID = addMusicEventHandler ["MusicStop", {hint str _this}];
Search OFPEC COMREF