Exemplo n.º 1
0
        public void ToggleLights()
        {
            if (aiPlayer.OnCoolDown(NetworkSide.Client))
            {
                return;
            }
            aiPlayer.StartCoolDown(NetworkSide.Client);

            if (aiPlayer.CoreCamera == null)
            {
                Chat.AddExamineMsgToClient("Unable to change light state when not in core");
                return;
            }

            aiPlayer.CmdToggleCameraLights(!aiPlayer.CoreCamera.LightOn);
        }