- Joined
- Dec 29, 2008
- Messages
- 3,351
Well, PurgeandFire answered chilla_killa on how to detect unloading.
Here's how:
Cause I really need to check what unit group the transport belongs (not the transported unit).
Thank you for your help
Here's how:
-
UnitLoaded
-

Events
-


Unit - A unit Is loaded into a transport
-
-

Conditions
-

Actions
-


Unit Group - Add (Triggering unit) to TransportGroup
-


Game - Display to (All players) the text: ((Name of (Triggering unit)) + was loaded!)
-
-
-
UnitLeaves
-

Events
-


Time - Every 0.03 seconds of game time
-
-

Conditions
-

Actions
-


Unit Group - Pick every unit in TransportGroup and do (Actions)
-



Loop - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






((Picked unit) is being transported) Equal to False
-
-





Then - Actions
-






Unit Group - Remove (Picked unit) from TransportGroup
-






Game - Display to (All players) the text: ((Name of (Picked unit)) + was unloaded!)
-
-





Else - Actions
-
-
-
-
-
Cause I really need to check what unit group the transport belongs (not the transported unit).
Thank you for your help




