public void CmdAddAction(GameObject agent, string actionName, GameObject target, Vector3 targetPos, int layer, bool addToList)
        {
            if (Helper.IsNullOrDestroyed(agent))
            {
                DebugManager.WarningMessage("Attempting to add an AIAction to an AIAgent Server side!");
                return;
            }

            AIAgent ai = agent.GetComponent <AIAgent>();

            if (ai)
            {
                ai.AddAction(actionName, addToList, target, targetPos, layer);
            }
        }