• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Dummy Ownership

Status
Not open for further replies.
Let's say I have a dummy cast carrion swarm simultaneously for two different players. Do both deal damage to both players' enemies, or just the latest owner's?

They will attack units that are enemies of them. So if you create a carrion swarm for player 1 (player 3 is an enemy) it will attack player 3. Then player 2 (player 4 is an enemy) that carrion swarm will attack player 4.
This is normal for all spells I know of.

Also WC3 does not do anything simultaneously. It actually runs one thread at a time. It does this so fast that you think they run at the same time.
The reason it does this is to make coding with globals easier. (or because they were to lazy to multithread WC3)
By running one thread at a time you can continually reuse globals without having to worry about them overwriting each other. ( temp variables)
 
As long as the dummy cast the first one before the second then yes. This can be tricky as you will be moving the unit and facing the unit in a new direction. If the unit casts the first one then yes it will work fine but if the unit has to turn (units don't turn instantly) then it will switch owners before it has a chance to cast the first instance.

Effectively it will cancel the first command.
 
Status
Not open for further replies.
Top