AttachSoundToUnit

Parameters
soundHandle sound

The 3D sound to play.

whichUnit unit

The 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
return type
nothing
Source code
native AttachSoundToUnit            takes sound soundHandle, unit whichUnit returns nothing