You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lua/entities/gmod_wire_expression2/core/custom/cl_webaudio.lua
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,7 @@ desc("setParent(xwa:e)", "Parents the stream position to e, local to the entity.
33
33
desc("setParent(xwa:)", "Unparents the stream")
34
34
desc("setRadius(xwa:n)", "Sets the radius in which to the stream will be heard in. Default is 200 and (default) max is 1500.")
35
35
desc("setLooping(xwa:n)", "If n is not 0, sets the stream to loop. Else stops looping.")
36
+
desc("set3DEnabled(xwa:n)", "If n is not 0, sets the stream to be 3D. By default streams are 3D. Else, sets the audio to play directly on clients (mono audio).")
36
37
37
38
-- is* Getters
38
39
desc("isValid(xwa:)", "Returns 1 or 0 for whether the webaudio object is valid (If it is not destroyed & Not invalid from quota)")
@@ -43,6 +44,7 @@ desc("getPos(xwa:)", "Returns the current position of the WebAudio object. This
43
44
desc("getVolume(xwa:)", "Returns the volume of the WebAudio object set by setVolume")
44
45
desc("getRadius(xwa:)", "Returns the radius of the WebAudio object set by setRadius")
45
46
desc("getLooping(xwa:)", "Returns if the stream is looping, set by setLooping")
47
+
desc("get3DEnabled(xwa:)", "Returns if the stream's 3D is enabled, set by set3DEnabled")
46
48
47
49
-- Replicated Clientside behavior on server
48
50
desc("getTime(xwa:)", "Returns the playback time of the stream in seconds.")
0 commit comments