Go
Wc3C.net
»
Warcraft III Modding
»
Developer's Corner
»
Triggers & Scripts
»
Get Transport Unload
Get Transport Unload
11-10-2008, 05:17 PM
#1
rulerofiron99
How do I detect if a unit is unloaded from a transport?
(Based on Burrow, when the resident unit's icon is clicked)
11-10-2008, 05:51 PM
#2
moyack
There's a function that detects if a unit is being transported...
constant
native
IsUnitInTransport
takes
unit
whichUnit
,
unit
whichTransport
returns
boolean
11-10-2008, 05:56 PM
#3
rulerofiron99
I was thinking more along the lines of an actual event.
Anyway I managed to think of a way, hope it works, and thanks for your help.
11-10-2008, 06:05 PM
#4
moyack
I think you can catch it with an issued immediate order. I suggest to check the unload command so you can do the correct check.
11-10-2008, 07:01 PM
#5
rulerofiron99
Thanks for the advice, I'll give it a shot.