removeMusicEventHandler: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>") |
Lou Montana (talk | contribs) m (Add EH link) |
||
Line 8: | Line 8: | ||
|gr2= Sounds | |gr2= Sounds | ||
|descr= Removes specified music track event handler. | |descr= Removes specified music track event handler. See {{Link|Arma 3: Event Handlers#Music Event Handlers}}. | ||
|s1= [[removeMusicEventHandler]] [type, id] | |s1= [[removeMusicEventHandler]] [type, id] | ||
Line 26: | Line 26: | ||
removeMusicEventHandler ["MusicStop", _stopMusicEH];</sqf> | removeMusicEventHandler ["MusicStop", _stopMusicEH];</sqf> | ||
|seealso= [[addMusicEventHandler]] [[setMusicEventHandler]] [[removeAllMusicEventHandlers]] [[playMusic]] | |seealso= [[addMusicEventHandler]] {{Link|Arma 3: Event Handlers#Music Event Handlers}} [[setMusicEventHandler]] [[removeAllMusicEventHandlers]] [[playMusic]] | ||
}} | }} |
Revision as of 19:29, 21 May 2023
Description
- Description:
- Removes specified music track event handler. See Arma 3: Event Handlers - Music Event Handlers.
- Groups:
- Event HandlersSounds
Syntax
- Syntax:
- removeMusicEventHandler [type, id]
- Parameters:
- 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:
- private _stopMusicEH = addMusicEventHandler ["MusicStop", {}]; // ... removeMusicEventHandler ["MusicStop", _stopMusicEH];
Additional Information
- See also:
- addMusicEventHandler Arma 3: Event Handlers - Music Event Handlers setMusicEventHandler removeAllMusicEventHandlers playMusic
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