AzaezelX пре 3 година
родитељ
комит
7c32abd026
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      Templates/BaseGame/game/core/clientServer/scripts/server/audio.tscript

+ 1 - 1
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
    // 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.
    // The sound will be transmitted as an event, not attached to any object.
    for(%idx = 0; %idx < ClientGroup.getCount(); %idx++)
    for(%idx = 0; %idx < ClientGroup.getCount(); %idx++)
-      commandToClient(ClientGroup.getObject(%idx), PlaySound, %pos);
+      commandToClient(ClientGroup.getObject(%idx), 'PlaySound',%profile, %pos);
 }
 }