Using AddAIGoal("Defend") to make locals follow you around?
Posted: Sat May 09, 2009 6:51 pm
The question is in the title: can you use AddAIGoal(), more specifically, the "defend" type, to make all of the units from another team, not ATT or DEF, but a local team (that team being friendly to you), follow you around, attack enemies nearby, etc... essentially, make YOU, the human, be the defense object.
Essentially, what I am asking is how you would reference yourself (or your team, it doesn't matter to me, as you are the only one on your team) in the following code:
What code would I put in place of "theHuman" in the preceding code?
Thanks!
Essentially, what I am asking is how you would reference yourself (or your team, it doesn't matter to me, as you are the only one on your team) in the following code:
Hidden/Spoiler:
Thanks!