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!
I've saw the event "A unit is loaded into a transport",but I didn't see the unload version. Can any tell me how to either find another way around it,or locate the mission event?
the way I went around it was that when a unit fired the "unit is loaded ..." event, I saved that unit into unit group.
When unit leaves a transport, it fires the "unit enters region" event, so I used that. But the event fires for any unit (created, summoned, ...), hence I check if the triggering unit is in the "loaded" unit group. If yes, it was unloaded and I remove the unit from the unit group.
Use the event "Game - CargoEvent becomes Equal to 1.00" to detect when a unit is loaded into a transport. Use the event "Game - CargoEvent becomes Equal to 2.00" to detect when it is unloaded.
You also have "CargoTransportUnit[(Custom value of Unit)]" to get the unit who is carrying the unit, and "CargoTransportGroup[(Custom value of Transport)]" to pick all units that the transport is carrying.
the way I went around it was that when a unit fired the "unit is loaded ..." event, I saved that unit into unit group.
When unit leaves a transport, it fires the "unit enters region" event, so I used that. But the event fires for any unit (created, summoned, ...), hence I check if the triggering unit is in the "loaded" unit group. If yes, it was unloaded and I remove the unit from the unit group.
It doesn't fire the enters-region event unless you moved the unit outside the region after it was loaded. And yes, as KILLCIDE stated, use Unit Event. It does all that cool stuff without bugs.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.