; ; This is a part of the Group Link II script. ; ; /KeyCat ; ; ---------------------------------------------------------------------------- ; Get current group _group = _this select 0 ; 50 % chance to get a voice comment from the enemy group ? (random 100 < 50) : exit ; Randomly select voice comment to play at clients KEY_VoiceNumber = random 14 KEY_VoiceNumber = KEY_VoiceNumber - KEY_VoiceNumber % 1 ; ########### DEBUG ########### ;hint format["DEBUG: Voice Alert # %1",KEY_VoiceNumber] ; ############################# ; Assign current group to global variable KEY_VoiceGroup = _group ; broadcast current group to all clients publicVariable "KEY_VoiceGroup" ; broadcast voice number to all clients publicVariable "KEY_VoiceNumber" ; wait until all received it ~1 ; Set global variable KEY_VoiceAlert true KEY_VoiceAlert = True ; broadcast it to all clients (plays voice alert on clients) publicVariable "KEY_VoiceAlert" ~1 ; Set variable to false KEY_VoiceAlert = False exit