Play sound effect [Obsoleto]

STD Library
Obsoleto
Lado del servidor
Disponible en PC y móvil

Play the specified sound effect. If there are more properties to set, further set its entity properties through the entity (deprecated, please use CreateSound)

Declaración

func CreateSoundEntity_Deprecated(out var createdEntity entity<PresentSound_Deprecated>, owner entity<Player>, soundType SoundEffectType)
go

Parámetros

Entrada

Nombre Tipo Descripción
Player Player The player entity it belongs to, only visible to that player
Resource path AudioType Sound effect type, the type of sound effect that players can choose

Afuera

Nombre Tipo Descripción
Music entity PresentSound[Obsoleto] In the code, it is used to indicate the name of the parameter for creating a sound effect entity. The corresponding local variable value is the entity that creates the sound effect.