removeMusicEventHandler: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) 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 | {{Command | ||
| arma3 | | arma3 | ||
|0.50 | |0.50 | ||
|gr1= Event Handlers | |gr1= Event Handlers | ||
|gr2= Sounds | |gr2= Sounds | ||
| Removes specified music track event handler. | | Removes specified music track event handler. | ||
| [[removeMusicEventHandler]] [type, id] | | [[removeMusicEventHandler]] [type, id] | ||
|p1= [type, id]: [[Array]] | |p1= [type, id]: [[Array]] | ||
|p2= type: [[String]] - "MusicStart" or "MusicStop" | |p2= type: [[String]] - "MusicStart" or "MusicStop" | ||
|p3= id: [[Number]] - event handler id | |p3= id: [[Number]] - event handler id | ||
| [[Nothing]] | | [[Nothing]] | ||
|x1= <code>[[removeMusicEventHandler]] ["MusicStart", 12];</code> | |x1= <code>[[removeMusicEventHandler]] ["MusicStart", 12];</code> | ||
|x2= <code>[[removeMusicEventHandler]] ["MusicStop", 12];</code> | |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> | </code> | ||
| [[addMusicEventHandler]], [[setMusicEventHandler]], [[removeAllMusicEventHandlers]], [[playMusic]] | | [[addMusicEventHandler]], [[setMusicEventHandler]], [[removeAllMusicEventHandlers]], [[playMusic]] | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= |
Revision as of 01:24, 18 January 2021
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
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