Skip to main content

Execute_PlaySound2D

Description

Plays a 2D sound effect defined in the AudioResources table. Only plays when the BaseObject is the character currently being controlled by the local player.

Parameters

ParameterDescription
BaseObjectThe target object to check for player possession.
S1The SoundId defined in the AudioResources table.
S2Set to True to control playback based on possession of the target entity.

Examples

DescriptionBaseObjectCommand
Play Goal_Change sound when Self is possessedSelfPlaySound2D
Play LevelUp sound when Self is possessedSelfPlaySound2D