setMusicEffect: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (add to sounds com group)
mNo edit summary
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.
Track is a subclass name of CfgMusic. In addition, "$NONE$" (no change) or "$STOP$" (stops the current music track). |= Description
 
"$NONE$" (no change) or "$STOP$" (stops the current music track). |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| trigger '''setMusicEffect''' track |= Syntax
| TriggerObject '''setMusicEffect''' "track" |= Syntax


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


|p2= track: [[String]] |= Parameter 2
|p2= track: [[String]] |= Parameter 2
Line 23: Line 21:
____________________________________________________________________________________________
____________________________________________________________________________________________


|s2= waypoint '''setMusicEffect''' track |= Syntax
|s2= [[Waypoint]] '''setMusicEffect''' "track" |= Syntax
 
|p21= waypoint: [[Array]] (format [[Waypoint]] |= Parameter 1


|p22= track: [[String]] |= Parameter 2
|p21= track: [[String]] |= Parameter 1


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



Revision as of 09:01, 31 August 2007

-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, "$NONE$" (no change) or "$STOP$" (stops the current music track).
Groups:
Uncategorised

Syntax

Syntax:
TriggerObject setMusicEffect "track"
Parameters:
TriggerObject : Object
track: String
Return Value:
Nothing

Alternative Syntax

Syntax:
Waypoint setMusicEffect "track"
Parameters:
track: String
Return Value:
Nothing

Examples

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

Additional Information

See also:
See also needed

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