are single triggers usable in multiple instances at once?

Inflicted

Currently inactive
Reaction score
63
that sounds kinda unclear, but i mean like can 1 trigger be used more than once during the same duration?

eg. with wait commands.

i do something like

Unit is attacked
wait 2.0 seconds
create 1 unit at position of attacking unit

now what if i moved and attacked another unit during that 2 seconds?

would it create the unit at the current position?
would it create 2 units, for 2 attacks? proving that it can run twice at the same time?
or would it wait till one has finished before the trigger restarts?

does anyone know how the order of the triggers works? i know there is trigger queues, but can a trigger be shown twice at once?

please give comment if you are sure of this. thanx
 

tommerbob

Minecraft. :D
Reaction score
110
To add to what Jedi said, yes a trigger can run more than once, simultaneously. You will not have problems with them overlapping unless you are using global variables. There are of course solutions to this. That's why hashtables are so beautiful. :p
 

Moridin

Snow Leopard
Reaction score
144
There won't be any problem with the current example you've given. However, if you use waits, there are certainly times when it is not MUI (multiple unit instances).

Instant triggers are perfectly MUI though.
 

Jedi

New Member
Reaction score
63
It is not a problem, user's fault.(except "Casting unit", that is Blizzard's fault :p)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top