Great tutorial, but It would have been nice to make tutorial about units that can shoot attached to units. The spinecrawler example is really hard to get and not as usefull as other attachments could be.
Iv been doing this for 2 days and still cannot get this right...When I fix something, something other goes wrong. The unit is attached right, but it doesnt attack :/.
I think there deffinetly is some leak issues. Iv tried spamming my spells but it causes lagg after a while. In wc3 that never happened since I could remove those leaks myself (custom/trigger spell ofc)....dunno if garbage collector is too slow to pick leaks when you spam something or Is there some bug in my triggers...
I quess I would do it something like this (im not a timer user :/)...
Unit enter region -> Turn on periodic trigger
- spawn unit to point (you want).
When using the periodic triggers, you need to put intially on option off from the trigger, so it doesnt run before you activate it.
edit* If you want to have more specific time, you could set periodic trigger run every 0,05sec, or so and calculate the time using variables. Like: every 0,05sec -> set time = time + 0,05sec. If time is 2sec -> spawn unit, set time = 0.