From c4b30b74fd24ffcf5ebde2950421927abc694da7 Mon Sep 17 00:00:00 2001 From: AzaezelX Date: Sat, 3 Feb 2024 22:39:21 -0600 Subject: [PATCH] clarify variable types. you want to pass assetIDs, not actual profiles --- .../core/clientServer/scripts/server/audio.tscript | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Templates/BaseGame/game/core/clientServer/scripts/server/audio.tscript b/Templates/BaseGame/game/core/clientServer/scripts/server/audio.tscript index 7cc7abd60..0fcb6be80 100644 --- a/Templates/BaseGame/game/core/clientServer/scripts/server/audio.tscript +++ b/Templates/BaseGame/game/core/clientServer/scripts/server/audio.tscript @@ -21,21 +21,21 @@ //----------------------------------------------------------------------------- //----------------------------------------------------------------------------- - -function ServerPlay2D(%profile) +// +function ServerPlay2D(%assetID) { // Play the given sound profile on every client. // The sounds will be transmitted as an event, not attached to any object. for(%idx = 0; %idx < ClientGroup.getCount(); %idx++) - ClientGroup.getObject(%idx).play2D(%profile); + ClientGroup.getObject(%idx).play2D(%assetID); } -function ServerPlay3D(%profile,%transform) +function ServerPlay3D(%assetID,%transform) { - // Play the given sound profile at the given position on every client + // Play the given sound assetID at the given position on every client // The sound will be transmitted as an event, not attached to any object. for(%idx = 0; %idx < ClientGroup.getCount(); %idx++) - ClientGroup.getObject(%idx).play3D(%profile,%transform); + ClientGroup.getObject(%idx).play3D(%assetID,%transform); } function ServerPlaySound(%profile,%pos)