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
| Parameter | Description |
|---|
| BaseObject | The target object to check for player possession. |
| S1 | The SoundId defined in the AudioResources table. |
| S2 | Set to True to control playback based on possession of the target entity. |
Examples
| Description | BaseObject | Command |
|---|
| Play Goal_Change sound when Self is possessed | Self | PlaySound2D |
| Play LevelUp sound when Self is possessed | Self | PlaySound2D |