Declaration
func CreateSound(out var createdEntity entity<SoundEffect>, target entity<Player>, resource SoundEffectType, loopType LoopType, autoPlay bool)
go
Parameters
Input
Name | Type | Description |
---|---|---|
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 |
Out
Name | Type | Description |
---|---|---|
Created Entity | SoundEntity | Created sound entity |