Again, didn't know what to search. After an air unit, in my case a wraith, is created, I want it to attack instantly, like in Spellsword or WAF. I tried ordering it to patrol it to its same location, same with attack, but it doesn't attack as fast as I would want it. I thought of centering a location corresponding to the wraith's attack range, and center another location on an enemy unit on the range, and order it to attack.. but hopefully that's not the solution. Suggestions?
None.
Don't create it. Move it from another location. What I did for my map is create it for computers. When the player casts it, move it to the location and give it to the player.
None.
If you order it to patrol to its own location, for some reason it doesn't do anything. Try making it patrol to, well, anywhere.
That doesn't work at all. When you create a unit, there is a delayed reaction and it has to actually turn before it hits. A huge example of this is the siege tank (sieged mode). When you create it, it has to take its time to actually siege and then attack.
None.
You could either create the Wraith and center.
Or you could use Echo's Method.
The only reason why the wraith doesn't 'instantly' attack is probably because it has to spin.
None.
In spellsword the wraiths for fireburst are created and not moved.
Trigger(" Spellswords"){
Conditions:
Bring("Current Player", "Protoss Probe", "002", At least, 1);
Deaths("Current Player", "Mineral Chunk (Type 2)", Exactly, 0);
Actions:
Display Text Message(Always Display, "\x004+\x002You cast \x006'\x003'\x002\x004F\x002ireburst.");
Move Location("Current Player", "Zeratul (Dark Templar)", "Anywhere", "016");
Create Unit with Properties("Player 7", "Zerg Overlord", 1, "016", 2);
Kill Unit("Player 7", "Zerg Overlord");
Set Deaths("Current Player", "Mineral Chunk (Type 2)", Set To, 10);
Play WAV("Spell2.wav", 0);
Preserve Trigger();
}
Trigger(" Spellswords"){
Conditions:
Bring("Current Player", "Protoss Probe", "002", At least, 1);
Deaths("Current Player", "Mineral Chunk (Type 2)", Exactly, 8);
Actions:
Move Location("Current Player", "Zeratul (Dark Templar)", "Anywhere", "016");
Remove Unit("Current Player", "Tom Kazansky (Wraith)");
Create Unit with Properties("Current Player", "Tom Kazansky (Wraith)", 1, "016", 4);
Order("Current Player", "Tom Kazansky (Wraith)", "Anywhere", "017", attack);
Preserve Trigger();
}
I'm not sure where this "17" location they're being told to attack to is. I'll find out in a bit.
None.
Thanks for your replies. I made a test map of my own, and found out that creating it than ordering it to attack to the middle of the map gives a fast attack speed, leaving it out for three death counters. With patrol, three death counters sometimes isn't enough time for it to attack. Also, in the rare chance that the hero is in the exact middle of the map, I made it so the middle of the map is unwalkable.
Attachments:
None.
Ah! I'm surprised, I would have thought Attack wouldn't work at all, also, I tested the difference between Patrolling to the location that you want it to attack vs. patrolling to Anywhere and I didn't see any difference in speed.
Glad you found the solution
None.