Union Bytes EngineModulesSoundsSetSoundCone

Union Bytes Engine

GeneralHilfeseitensyntaxModules
AnimationBillboardCageCameraControlDefinitionDrawingFontGadgetGeneralJoystickLightMaterialMathMeshNetworkNodeObjectParticlePhysicShaderSounds
ExamineSoundsFreeSoundGetSoundLengthGetSoundStateIsSoundLoadSoundDefinitionLoadSoundFileMoveSoundPauseSoundPlaySoundResumeSoundRotateSoundSetCollisionSoundSetSoundConeSetSoundDirectionSetSoundFrequencySetSoundRangeSetSoundStateSetSoundVolumeSoundSoundIDStopSoundUnsetCollisionSound
SpriteTexture

SetSoundCone

Description

Sets the audible cone of the specified sound.

Syntax

UBE_SetSoundCone( Sound.i, MaxAngle.f [, MinAngle.f] )

Parameters

Sound The number of the sound.
MaxAngle The angle in degree around the audibal volume is zero. If this value is set to #UBE_SOUND_FULLSPHERE the cone effect is off (default setting) and the audibal volume is equal to the sound volume all around.
MinAngle The angle in degree in which the audibal volume is the sound volume. By default this angle is set to 0.0 and is ignored if MaxAngle is set to #UBE_SOUND_FULLSPHERE.

Return value

None

Remarks

Between minimum and maximum angle the audibal volume is decreasing gradually from sound volume to zero.

See also

Union Bytes | Login