OpenMetaverse.Simulator.Pause C# (CSharp) Method

Pause() public method

Instructs the simulator to stop sending update (and possibly other) packets
public Pause ( ) : void
return void
        public void Pause()
        {
            AgentPausePacket pause = new AgentPausePacket();
            pause.AgentData.AgentID = Client.Self.AgentID;
            pause.AgentData.SessionID = Client.Self.SessionID;
            pause.AgentData.SerialNum = (uint)Interlocked.Exchange(ref pauseSerial, pauseSerial + 1);

            Client.Network.SendPacket(pause, this);
        }