Create Sound Effect [Obsoleto]

STD Library
Obsoleto
Tanto lado del cliente como del usuario
Disponible en PC y móvil

Play the specified sound effect. If there are more properties that need to be set, further set its entity properties through the entity.

Declaración

func CreateSound_Deprecated(out var entityVarName entity<SoundEffect>, ownerPlayer 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 SoundEntity 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.