PlaySndCommand
Extends: ESCBaseCommand < Resource
Description
play_snd file [player]
Plays the specified sound without blocking the currently running event.
Parameters
file: Sound file to play
player: Sound player to use. Can either be
_sound
, which is used to play non- looping sound effects;_music
, which plays looping music; or_speech
, which plays non-looping voice files (default:_sound
)
@ESC
Method Descriptions
configure
func configure() -> ESCCommandArgumentDescriptor
Return the descriptor of the arguments of this command
validate
func validate(arguments: Array)
Validate whether the given arguments match the command descriptor
run
func run(command_params: Array) -> int
Run the command