R
Rollo123
Guest
Can someone please tell me the error in this. With this statement my map will not compile anymore. I am noob in jass and am only trying to use it so i can get a AI hero to cast a spell stored as a variable.
call IssueTargetOrderBJ( udg_heroArray[GetForLoopIndexA()], udg_heroSpell[GetForLoopIndexA()], udg_HeroTargetUnit[GetForLoopIndexA()] )
Although all on one line. heroArray is the unit casting the spell, heroSpell is the actual spell (stored in a variable), and heroTargetUnit is the target of the spell.
The two errors i get are invalid argument type, and expected a code statement. Thanks
call IssueTargetOrderBJ( udg_heroArray[GetForLoopIndexA()], udg_heroSpell[GetForLoopIndexA()], udg_HeroTargetUnit[GetForLoopIndexA()] )
Although all on one line. heroArray is the unit casting the spell, heroSpell is the actual spell (stored in a variable), and heroTargetUnit is the target of the spell.
The two errors i get are invalid argument type, and expected a code statement. Thanks