er2.playClipOnRadio3D 72

Play a 3D Audio Clip, coming from a specific location and with a maximum hear distance with a radio distortion effect (.wav)


Return value

Return TypeDescription
voidthis function doesn't return anything

Parameters

ParameterTypeDescription
1stringFile name and extension of the clip to play. Currently only .wav files are supported. File must be placed inside a folder called "sounds" inside your mission folder (C://..../yourmission/sounds/)
2vec3Origin of the sound. Range can't be edited but is approximatly the range of a WW2 radio speaker.
3bool(Optional) Set to true if you want the clip to be played on all clients. False if you want it to be played on the client executing the script only. Default is True
4float(Optional) Delay in seconds before playing the clip. Default is 0

Examples

No examples available.


Back to Scripting API