AttachSoundToUnit
- Parameters
soundHandle soundThe 3D sound to play.
whichUnit unitThe unit to attach the sound to.
- comment
Attaches the sound soundHandle to unit whichUnit. Attaching sound to unit means that the more far away the player stays from the unit to which the sound is attached, the less loud the sound plays (the volume of the attached sound decreases with increasing distance).
- note
This call is only valid if the sound was created with 3d enabled.
- patch
1.00
- Source
- common.j (raise an issue to discuss on Github or submit a PR)
- return type
nothing- Source code
native AttachSoundToUnit takes sound soundHandle, unit whichUnit returns nothing