Thursday, April 12, 2012

The function aiBrain:GetCurrentEnemy()

[:1]Has anyone figured out what this function returns exactly. Does it return a single chosen enemy or does it return all enemies belonging to all factions. If it returns a chosen enemy faction does anyone know where the function where that enemy is chosen is located ?



And also does Army:GetArmyIndex return a list of all enemy units beloning to Army



If someone can enlighten me on this 2 things i'd be greatly thankful.|||I'm pretty sure aiBrain:GetCurrentEnemy() returns what army the AI is attacking, such as ARMY_1 or ARMY_5.|||Returns the current army that AI is focusing attacks on. Assuming FA, the enemy is chosen in aibrain.lua in a function called PickEnemyLogic().|||thank you. That answered my question

No comments:

Post a Comment