That is what I would like to have as result: unit with very little sight range (2 or 3), but able to attack units it doesn't see and at very far distance (up to 100 maybe).
So I created a weapon with Attack (and Minimum Scan) Range of 60 and gave it to the unit with Sight range of 30, just to test. Weapon Target Filters are as following: Dead, Invulnerable, Missile, Self, Stasis are Excluded, all others are Allowed; at the bottom only Enemy and Player are checked. This filter setting is intended to remove target units' need to be seen by the attacker.
But it behaves a bit strangely: attacker shoots at its own units at any distance (up to 60), but enemy units are only attacked at the distance up to about 16 (while even the Sight range of the attacker is 30). And I don't seize - why 16? Where does this number come from? And how to overcome it?
@Downsizer: Go
first of all, you have checked the flag Player, that's why it attacks your own units.
you always see your own units and that's why it shoots at a range of 60.
i think your maximum sight range is 16 and not 30
maybe you might uncheck the visisble flag of the target filters to target not spotted enemies (or this allows to target invisible units like dark templar, dunno never needed)
i would simulate the attack with a periodic behavior using a search effect rather than using a weapon
That is what I would like to have as result: unit with very little sight range (2 or 3), but able to attack units it doesn't see and at very far distance (up to 100 maybe).
So I created a weapon with Attack (and Minimum Scan) Range of 60 and gave it to the unit with Sight range of 30, just to test. Weapon Target Filters are as following: Dead, Invulnerable, Missile, Self, Stasis are Excluded, all others are Allowed; at the bottom only Enemy and Player are checked. This filter setting is intended to remove target units' need to be seen by the attacker. But it behaves a bit strangely: attacker shoots at its own units at any distance (up to 60), but enemy units are only attacked at the distance up to about 16 (while even the Sight range of the attacker is 30). And I don't seize - why 16? Where does this number come from? And how to overcome it?
Thanks in advance for hints.
@Downsizer: Go first of all, you have checked the flag Player, that's why it attacks your own units.
you always see your own units and that's why it shoots at a range of 60.
i think your maximum sight range is 16 and not 30
maybe you might uncheck the visisble flag of the target filters to target not spotted enemies (or this allows to target invisible units like dark templar, dunno never needed)
i would simulate the attack with a periodic behavior using a search effect rather than using a weapon