func CreateSound_Deprecated(out var entityVarName entity<SoundEffect>, ownerPlayer entity<Player>, soundType SoundEffectType)
go
| Name |
Type |
Description |
| 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 |
| Name |
Type |
Description |
| 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. |