How would you make it so traceline can target player 14 and 15 as enemies? Because right now player 15 is the only thing I can target.
What would you need to change here?
I tried setting a variable and changing 15 to gv_enemy = unit group variable that groups all hostile units to player 1
How can I filter alliance? I'm kinda lost when it comes to codes.
I just need to know how i can filter alliance by means of codes.
How would you make it so traceline can target player 14 and 15 as enemies? Because right now player 15 is the only thing I can target.
What would you need to change here?
lv_closestUnit = libNtve_gf_ClosestUnitToPoint(lv_tracePoint, UnitGroup(null, 15, lv_traceRegion, UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
I know its 15 but what's the code to target enemies of player 1? 14 and 15 are enemies.
Combine the unit groups, sounds like you'd just need to filter by alliance tho.
@caspersc:
I tried setting a variable and changing 15 to gv_enemy = unit group variable that groups all hostile units to player 1
How can I filter alliance? I'm kinda lost when it comes to codes.
I just need to know how i can filter alliance by means of codes.
I'm sure its simple, for you guys. Can anybody help?