"assignedTarget" often returns nothing, even when the AI is shooting at something.
For AI mods, its very important to know what an AI unit is shooting at, right now we have no way.
"assignedTarget" often returns nothing, even when the AI is shooting at something.
For AI mods, its very important to know what an AI unit is shooting at, right now we have no way.
Before: <unit> addEventHandler [ 'FiredMan', { // what is he shooting at? } ]; After: <unit> addEventHandler [ 'FiredMan', { params ['_unit']; _unit doSuppressiveFire (attackTarget _unit); // suppress the target instead of regular fire _unit removeEventHandler ['FiredMan',_thisEventHandler]; } ];