| 08-22-2008, 01:21 PM | #1 |
How do i find the unit that "acquires a target" when i have one trigger added to the event of another trigger of: Trigger: Trigger - Add to SpelltestAcquirestarget <gen> the event (Unit - (Last created unit) Acquires a target)In the other trigger that goes off, due to this event that i've added, I noticed that all functions referencing the "triggering unit" do not work.. what else can I use to reference this unit to work with functions? ---- If this cannot be done.. let me tell you my objective and maybe you know of a work-around. I'm trying to make a unit only attack once.. but then after i order him to "attack once" i notice that he then acquires a target and attacks more.. i've even tried giving him 0 range on his acquiring target range through triggers but it doesn't seem to matter. And the unit has an expiration time of 2 seconds, giving him time to make his attack.. then disapears. but within that time-frame he manages to get more attacks off, and that is a problem. so since i know that with any attacks beyond the first he must be acquiring a target, that is the reason for that other trigger.. so that i can stop/pause or remove the unit or do whatever i want with him to prevent further attacks. Any clues? -----update--------- uh, nevermind. it's working now for some reason. i dont understand.. i simply added a condition when there wasn't one before checking that the triggering unit was alive before running.. and now it runs? lol this makes no sense. |
| 08-22-2008, 07:38 PM | #2 |
If all you want to do is have a dummy unit attack the target once, why not just give some ridiculously high cooldown to it? Spreading a specific unit event in a bad way is rather excessive for this sort of thing. |
