Warning: file_put_contents(/ff_9c86cc844f882c48b8d679368ff8a57d579d6f31645b066b.php): failed to open stream: Permission denied in /home/ofpecsav/public_html/forum/Sources/Subs-ForumFirewall.php on line 1619
addMusicEventHandler - OFPEC Scripting Command Reference | OFPEC The Editing Center

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}];

Advertisement