소스 검색

Merge pull request #711 from Azaezel/alpha40/audioWork

fix ServerPlaySound
Brian Roberts 3 년 전
부모
커밋
d9bedbe31c
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
    // 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);
 }