removeMusicEventHandler: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma3 |Game name=
| arma3


|0.50|Game version=
|0.50


|gr1= Event Handlers |GROUP1=
|gr1= Event Handlers


|gr2= Sounds |GROUP2=
|gr2= Sounds


| Removes specified music track event handler. |DESCRIPTION=
| Removes specified music track event handler.


| [[removeMusicEventHandler]] [type, id] |SYNTAX=
| [[removeMusicEventHandler]] [type, id]


|p1= [type, id]: [[Array]] |PARAMETER1=
|p1= [type, id]: [[Array]]


|p2= type: [[String]] - "MusicStart" or "MusicStop" |PARAMETER2=
|p2= type: [[String]] - "MusicStart" or "MusicStop"


|p3= id: [[Number]] - event handler id |PARAMETER3=
|p3= id: [[Number]] - event handler id


| [[Nothing]] |RETURNVALUE=
| [[Nothing]]


|x1= <code>[[removeMusicEventHandler]] ["MusicStart", 12];</code>|EXAMPLE1=
|x1= <code>[[removeMusicEventHandler]] ["MusicStart", 12];</code>
|x2= <code>[[removeMusicEventHandler]] ["MusicStop", 12];</code>|EXAMPLE2=
|x2= <code>[[removeMusicEventHandler]] ["MusicStop", 12];</code>
|x3= <code>
|x3= <code>
hnd_stop = [[addMusicEventHandler]] ["MusicStop",{}];
hnd_stop = [[addMusicEventHandler]] ["MusicStop",{}];
[[removeMusicEventHandler]] ["MusicStop",hnd_stop];
[[removeMusicEventHandler]] ["MusicStop",hnd_stop];
</code>|EXAMPLE3=
</code>


| [[addMusicEventHandler]], [[setMusicEventHandler]], [[removeAllMusicEventHandlers]], [[playMusic]] |SEEALSO=
| [[addMusicEventHandler]], [[setMusicEventHandler]], [[removeAllMusicEventHandlers]], [[playMusic]]


|  |MPBEHAVIOUR=  
|  |MPBEHAVIOUR=  

Revision as of 02:24, 18 January 2021

Hover & click on the images for description

Description

Description:
Removes specified music track event handler.
Groups:
Event HandlersSounds

Syntax

Syntax:
removeMusicEventHandler [type, id]
Parameters:
[type, id]: Array
type: String - "MusicStart" or "MusicStop"
id: Number - event handler id
Return Value:
Nothing

Examples

Example 1:
removeMusicEventHandler ["MusicStart", 12];
Example 2:
removeMusicEventHandler ["MusicStop", 12];
Example 3:
hnd_stop = addMusicEventHandler ["MusicStop",{}]; removeMusicEventHandler ["MusicStop",hnd_stop];

Additional Information

See also:
addMusicEventHandlersetMusicEventHandlerremoveAllMusicEventHandlersplayMusic

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section