From 7c32abd026ba9655314215384d340e013cd58a59 Mon Sep 17 00:00:00 2001 From: AzaezelX Date: Thu, 16 Dec 2021 18:25:14 -0600 Subject: [PATCH] fix ServerPlaySound --- .../game/core/clientServer/scripts/server/audio.tscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Templates/BaseGame/game/core/clientServer/scripts/server/audio.tscript b/Templates/BaseGame/game/core/clientServer/scripts/server/audio.tscript index 627701371..7cc7abd60 100644 --- a/Templates/BaseGame/game/core/clientServer/scripts/server/audio.tscript +++ b/Templates/BaseGame/game/core/clientServer/scripts/server/audio.tscript @@ -43,5 +43,5 @@ function ServerPlaySound(%profile,%pos) // Play the given sound profile 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++) - commandToClient(ClientGroup.getObject(%idx), PlaySound, %pos); + commandToClient(ClientGroup.getObject(%idx), 'PlaySound',%profile, %pos); } \ No newline at end of file