setMusicEffect: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(see also)
m (template:command argument fix)
Line 9: Line 9:
| Defines the music track played on activation.
| Defines the music track played on activation.


Track is a subclass name of CfgMusic. In addition, "$STOP$" (stops the current music track). |= Description
Track is a subclass name of CfgMusic. In addition, "$STOP$" (stops the current music track). |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| trigger '''setMusicEffect''' track |= Syntax
| trigger '''setMusicEffect''' track |SYNTAX=


|p1= trigger: [[Object]] |= Parameter 1
|p1= trigger: [[Object]] |PARAMETER1=


|p2= track: [[String]] |= Parameter 2
|p2= track: [[String]] |PARAMETER2=


| [[Nothing]] |= Return value
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________


|s2= waypoint '''setMusicEffect''' track |= Syntax
|s2= waypoint '''setMusicEffect''' track |SYNTAX=


|p21= waypoint: [[Array]] - format [[Waypoint]]|= Parameter 1
|p21= waypoint: [[Array]] - format [[Waypoint]]|PARAMETER1=
|p22= track: [[String]] |= Parameter 2
|p22= track: [[String]] |PARAMETER2=


|r2= [[Nothing]] |= Return value
|r2= [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <pre>_trigger setMusicEffect "Track1"</pre> |= Example 1
|x1= <pre>_trigger setMusicEffect "Track1"</pre> |EXAMPLE1=
|x2= <pre>[_group1,1] setMusicEffect "$STOP$"</pre> |= Example 2
|x2= <pre>[_group1,1] setMusicEffect "$STOP$"</pre> |EXAMPLE2=
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[createTrigger]], [[setSoundEffect]] |= See also
| [[createTrigger]], [[setSoundEffect]] |SEEALSO=


}}
}}

Revision as of 14:47, 7 April 2019

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

Description

Description:
Defines the music track played on activation. Track is a subclass name of CfgMusic. In addition, "$STOP$" (stops the current music track).
Groups:
Uncategorised

Syntax

Syntax:
trigger setMusicEffect track
Parameters:
trigger: Object
track: String
Return Value:
Nothing

Alternative Syntax

Syntax:
waypoint setMusicEffect track
Parameters:
waypoint: Array - format Waypoint
track: String
Return Value:
Nothing

Examples

Example 1:
_trigger setMusicEffect "Track1"
Example 2:
[_group1,1] setMusicEffect "$STOP$"

Additional Information

See also:
createTriggersetSoundEffect

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