• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

unload order

Status
Not open for further replies.
Level 24
Joined
Sep 26, 2009
Messages
2,320
It may have no order at all. The way I did it is that I catch when unit is loaded into transport and add this unit into unit group. Then I check when unit enters region (playable map area) and check if that unit is in the unit group. If yes, that unit got unloaded.
 

Dr Super Good

Spell Reviewer
Level 63
Joined
Jan 18, 2005
Messages
27,156
It may have no order at all.
It has to have an order or it will not synchronize in multiplayer. Everything a player issues has an order, except camera, selection and chat (and trackables but that is different) which get synchronized independently.

If I recall from 10 years ago it has a rather specific order ID. Specifically it is based at some address and adds 1 per slot to unload. It also has no string to accompany it so only the raw order ID. It is important to note that in multiplayer you can issue the unload order multiple times for the same unit before the order executes. This is where my old factory system broke since it is impossible to accurately track unloads (at least without obtuse complexity).
 
Status
Not open for further replies.
Top