Union Bytes EngineModulesSoundsSetSoundDirection

Union Bytes Engine

GeneralHilfeseitensyntaxModules
AnimationBillboardCageCameraControlDefinitionDrawingFontGadgetGeneralJoystickLightMaterialMathMeshNetworkNodeObjectParticlePhysicShaderSounds
ExamineSoundsFreeSoundGetSoundLengthGetSoundStateIsSoundLoadSoundDefinitionLoadSoundFileMoveSoundPauseSoundPlaySoundResumeSoundRotateSoundSetCollisionSoundSetSoundConeSetSoundDirectionSetSoundFrequencySetSoundRangeSetSoundStateSetSoundVolumeSoundSoundIDStopSoundUnsetCollisionSound
SpriteTexture

SetSoundDirection

Description

Sets the direction of the audible cone of the specified sound. (Only acted if a cone is set.)

Syntax

UBE_SetSoundDirection( Sound.i, X.f, Y.f, Z.f )

Parameters

Sound The number of the sound.
X, Y, Z The values of the three coordinates of the direction. The direction is in the local system of the sound. By default the direction is (0.0, 0.0, -1.0)

Return value

None

See also

Union Bytes | Login