Du musst dem ATTACK Befehl einen Parameter mitgeben. Ganz oben auf der Seite steht:
And last, but still very important: When using commands that require an id (of an agent), specifying -1 will automatically use your current target, and -2 will automatically use your self.
In deinem Fall heißt das:
Cmd($CA_ATTACK, -1)