Go
Wc3C.net
»
Warcraft III Modding
»
Developer's Corner
»
General Development
»
"Submissive" Unit
"Submissive" Unit
03-24-2010, 04:55 PM
#1
Thunder_Eye
I need a unit (from now called A) that:
Auto-aquires target (from now called B) and charges thowards it to attack.
Does not change from target no matter what, unless;
I order it to attack another unit (called C).
Same applies here, do not change target unless I say so.
Can be both ranged and melee.
What I've tried
Peon/Worker Classification
Added worker-classification at runtime.
Result:
Didn't seem to make any difference.
Permanent Invisibility
Result:
A did not auto-aquire targets.
Acquisition Range
Added in OE
Result:
The reordering works flawless, however, A doesn't auto-aquire targets, and is limited to melee range.
Added on runtime.
Result:
A is reordered to attack C, but as soon as B attacks, A is reordered to attack B.
Player Settings
Setting A to Computer, Neutral or None in Player Properties
Result:
Didn't seem to make any difference.
Alliance Settings
Setting the owner of B to ally/neutral of A.
Result:
As soon as the B attacks A, A's order is reset to attack B.
The usual problem:
A resets order back to B when attacked by it.
A doesn't change order at all.
Best results so far:
Setting Acquisition Range to 1 in OE gives the desired result, apart from auto-aquire and attackrange
Constantly (0.5s timer) setting A to attack C works, but he moves very choppy ,and he has serious problems with attacking.
03-24-2010, 08:26 PM
#2
TEC_Ghost
Why not just do it with jass?