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

[vJASS] Transporters system

Status
Not open for further replies.
Level 27
Joined
Feb 2, 2006
Messages
1,573
Hey,
I would like to detect unload events and check how many units are loaded in a transporter.
I know that there is a load event and a function to check if a unit is loaded into another.
However, there is no unload event.
Hence, I have started writing my own system which stores the group of loaded units per transporter in a hashtable.
However, the "unload" order event does not work. There is an "unloadall" order event but it is issued before as point event. Maybe the "unload" event has no target point but is an immediate order? and I am not sure what to do when the transporter dies. If it dies over ground the loaded units will be dropped and get some stun buff. If it dies over water, they loaded units will die? But for ships they always die?
Is there already any system which I could use and if not, do you have answers for my questions?
 
Last edited:
Level 27
Joined
Feb 2, 2006
Messages
1,573
thx I've also found:
From my understanding Bribe's system works by registering any immediate unit order for loaded units (which are stored before) because a "stop order" will always be issued by an unloaded unit?!
It has to consider paused units in transports since they won't get this immediate stop order?
It does not support corpses?
Is it the preversion of the GUI Unit Event?

I would prefer a vJass-only version and now I am curious if corpses are supported or not.
 

Uncle

Warcraft Moderator
Level 70
Joined
Aug 10, 2018
Messages
7,391
I imagine with the "new" UI natives you can check the Cargo Frames and perhaps draw a conclusion from that -> If icon is blank, no loaded unit, else, a unit is loaded.

I think Tasyen has done something similar to this for subgroups and selecting units.

Not entirely sure if it's possible though.
 
Last edited:
Status
Not open for further replies.
Top