Set distance

From Bennu Wiki
Revision as of 06:48, 14 March 2012 by (talk) (Created page with 'Category:functions Category:sound Category:mod_sound ==Definition== '''INT''' set_distance ( <'''INT''' channel> , <'''INT''' distance> ) Set the "distance" of a [[…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


INT set_distance ( <INT channel> , <INT distance> )

Set the "distance" of a sound channel. the distance specifies the location of the sound in relation to the listener. If you want also want to have control over the angle, see Set_position().


INT channel - The sound channel to change the position of.
INT distance - The distance (0-255).


INT : Status.

0 - Ok.
-1 - Error: sound inactive.


Distance value's

0 - The sound is near (or at it's loudest).
255 - The sound is far away (very quite).

Sound Functions