removeMusicEventHandler: Difference between revisions
Jump to navigation
Jump to search
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...) |
Lou Montana (talk | contribs) m (Text replacement - "<sqf>([^↵][^<]*↵[^<]*)<\/sqf>" to "<sqf> $1 </sqf>") |
||
(25 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| arma3 | |game1= arma3 | ||
|version1= 0.50 | |||
|0.50 | |||
|gr1= Event Handlers | |gr1= Event Handlers | ||
Line 9: | Line 8: | ||
|gr2= Sounds | |gr2= Sounds | ||
| Removes specified music track event handler. | |descr= Removes specified music track event handler. See {{Link|Arma 3: Event Handlers#Music Event Handlers}}. | ||
| [[removeMusicEventHandler]] [type, id] | |s1= [[removeMusicEventHandler]] [type, id] | ||
|p1= | |p1= type: [[String]] - "MusicStart" or "MusicStop" | ||
|p2= | |p2= id: [[Number]] - event handler id | ||
| | |r1= [[Nothing]] | ||
| [ | |x1= <sqf>removeMusicEventHandler ["MusicStart", 12];</sqf> | ||
|x2= <sqf>removeMusicEventHandler ["MusicStop", 12];</sqf> | |||
|x2= < | |||
| [ | |x3= <sqf> | ||
private _stopMusicEH = addMusicEventHandler ["MusicStop", {}]; | |||
// ... | |||
removeMusicEventHandler ["MusicStop", _stopMusicEH]; | |||
</sqf> | |||
| | |seealso= [[addMusicEventHandler]] {{Link|Arma 3: Event Handlers#Music Event Handlers}} [[setMusicEventHandler]] [[removeAllMusicEventHandlers]] [[playMusic]] | ||
}} | }} | ||
Latest revision as of 19:42, 3 September 2024
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