Create Sound

Playable
Lado del servidor
Disponible en PC y móvil

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

Declaración

func CreateSound(out var createdEntity entity<SoundEffect>, target entity<Player>, resource SoundEffectType, loopType LoopType, autoPlay bool)
go

Parámetros

Entrada

Nombre Tipo Descripción
Target Player Target player, only the target player can hear the sound effect
Resource AudioType Sound Effect Type
Loop Type AnimationOverrideLoopType Loop type
Auto Play Bool Play immediately or not

Afuera

Nombre Tipo Descripción
Created Entity SoundEntity Created sound entity