Play Sound Action: Difference between revisions

From Pummel Party Mod Documentation
Jump to navigation Jump to search
(Added image)
mNo edit summary
 
Line 11: Line 11:
! Property !! Description
! Property !! Description
|-
|-
| '''Target''' || The target of the action. If an audio source component, the audio source settings are used. Otherwise the audio is played globally.  
| '''Target''' || The target of the action. If set to an audio source component the audio source settings are used. Otherwise, the audio is played globally.  
|-
|-
| '''Clip''' || The audio file to be played.
| '''Clip''' || The audio file to be played.

Latest revision as of 02:30, 16 December 2022

An action that plays sound to be heard by players.

If the target of the action is an Audio Source Component, the provided Audio Clip Asset will be played by that audio source using its settings. If no audio clip is provided then the audio clip of the audio source will be played.

If the target is not an audio source, the provided audio clip will be played globally.

Properties

The Play Sound action in the Action Editor. This action is set up to use an audio source component in the scene to play an explosion sound.
Property Description
Target The target of the action. If set to an audio source component the audio source settings are used. Otherwise, the audio is played globally.
Clip The audio file to be played.
Volume The volume of the played audio clip.