• 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.

Any easy way to count number of units in transport?

Status
Not open for further replies.
Level 7
Joined
May 11, 2010
Messages
278
This is basically what Chaosy suggested.
  • Load
    • Events
      • Unit - A unit Is loaded into a transport
    • Conditions
    • Actions
      • Set number = (Load 0 of (Key (Transporting unit)) from loadTable)
      • Set number = (number + 1)
      • Hashtable - Save number as 0 of (Key (Transporting unit)) in loadTable
However, there deosn't seem to be any event to track when a unit is unloaded from a transport... Wich means you can't track when units leave and this will inly track the total of units wich have been transported in a certain transport.

I'd suggest you use Bribe's Unit Event as RulerofIron said.
 
Level 15
Joined
Nov 30, 2007
Messages
1,202
I could pick every unit near the unload area and compare them to the unit group from the added units, that system you refered towas to complicated for me to follow. :>

Load > add unit to group
Unload ability > pick every unit in area and compare them to the unload ability if they count as being in that area i could move them to a corner (*Looks away in shame.*)

Btw I dropped a suggestion in your spell Limit Attackers ;)
 
Status
Not open for further replies.
Top