Forum

Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    October 2016
    Posts
    1

    Whisperlist Unity3d

    I want to have a mainchannel and 10 subchannels, this main channel has to speak to all subchannels.I thought whisperlist will do this, I tried like this,

    Code:
        public void Speaktoall(bool Sstatus)
        {
            uint64 scHandlerID = ts3_client.GetServerConnectionHandlerID();
            if (Sstatus)
            {
                List<uint64> Allchanels = ts3_client.GetChannelList();// All channels in server
                uint64[] TempChannels = new uint64[Allchanels.Count];
                for (int t = 0; t < Allchanels.Count; t++)
                {
                    TempChannels[t] = Allchanels[t];
                    print("Whispher to " + Allchanels[t]);
                 //   print(ts3_client.GetChannelVariableAsString(TempChannels[t-2],ChannelProperties.CHANNEL_NAME)+  " - Client count " + ts3_client.GetChannelClientList(scHandlerID, TempChannels[t-2]).Count);
                }
                ts3_client.RequestClientSetWhisperList(scHandlerID, 0, TempChannels, null);
            }
            else
            {
                ts3_client.RequestClientSetWhisperList(scHandlerID, 0,null, null);
            }
        }

    But its not working. Can anyone help me on this

  2. #2
    Join Date
    January 2016
    Location
    Munich / Bavaria
    Posts
    16
    Hello sdrnavin,

    there is current a issue with the whisper lists inside the unity3d plugin.

    I will upload a example project soon.

    Regards,
    Alex G.

  3. #3
    Join Date
    January 2016
    Location
    Munich / Bavaria
    Posts
    16
    Hello sdrnavin,

    Code:
    //Attaching functions to the TeamSpeak callbacks.
    TeamSpeakCallbacks.onIgnoredWhisperEvent += onIgnoredWhisperEvent;
    
        private static void onIgnoredWhisperEvent(uint64 serverConnectionHandlerID, anyID clientID)
        {
            /* 
             * Add sending client to whisper allow list so own client will hear the voice data.
             * It is sufficient to add a clientID only once, not everytime this event is called. 
             * However it won't hurt to add the same clientID to the allow list repeatedly, but is is not necessary. 
             */
            Debug.Log("Enter onIgnoredWhisperEvent");
            ts3_client.AllowWhispersFrom(serverConnectionHandlerID, clientID);
        }
    
    
        // an example how to use whisper list
        private void whisperlist()
        {
            // ID of the client whose whisper list is modified. If set to 0, the own client is modified (same as setting to own client ID).
            ushort _clientID = 0;
    
            // Array of channel IDs, terminated ! with 0. These channels will be added to the whisper list.
            // To clear the list, pass NULL or an empty array.
            ulong[] _targetChannelIDArray = new ulong[2];
            _targetChannelIDArray[0] = 1; // 1 = Channel 1
            _targetChannelIDArray[1] = 0;
    
            // Array of client IDs, terminated ! with 0. These clients will be added to the whisper list.
            // To clear the list, pass NULL or an empty array.
            ushort[] _targetClientIDArray = null;
    
            ts3_client.RequestClientSetWhisperList(_clientID, _targetChannelIDArray, _targetClientIDArray);
        }


    Regards,
    Alex G.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: September 26th, 2015, 10:45 AM
  2. [Question] Whisperlist
    By aggro_ in forum Server Support
    Replies: 5
    Last Post: January 5th, 2013, 05:00 PM
  3. Can use PTT for WhisperList
    By TheChosen in forum Windows
    Replies: 1
    Last Post: August 17th, 2011, 09:01 AM
  4. WhisperList
    By TheChosen in forum Bug Reports [EN/DE]
    Replies: 0
    Last Post: August 15th, 2011, 12:32 AM
  5. Invalid whisperlist UID
    By spike1986 in forum Client Support
    Replies: 7
    Last Post: May 20th, 2010, 01:53 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •