hedgewars/uScript.pas
changeset 14058 bf8b7c166b3c
parent 13997 2828ec67c47c
child 14188 48b9da0178eb
equal deleted inserted replaced
14057:bf14c7c1be02 14058:bf8b7c166b3c
  2185                     if n = 3 then
  2185                     if n = 3 then
  2186                         instaVoice:= lua_toboolean(L, 3);
  2186                         instaVoice:= lua_toboolean(L, 3);
  2187                     if instaVoice then
  2187                     if instaVoice then
  2188                         PlaySoundV(TSound(s), gear^.Hedgehog^.Team^.Voicepack, false, true)
  2188                         PlaySoundV(TSound(s), gear^.Hedgehog^.Team^.Voicepack, false, true)
  2189                     else
  2189                     else
  2190                         AddVoice(TSound(s), gear^.Hedgehog^.Team^.Voicepack, true);
  2190                         AddVoice(TSound(s), gear^.Hedgehog^.Team^.Voicepack, true, false);
  2191                     end;
  2191                     end;
  2192                 end;
  2192                 end;
  2193             end;
  2193             end;
  2194         end;
  2194         end;
  2195     lc_playsound:= 0;
  2195     lc_playsound:= 0;