How to judge if a unit is airlifted?

Tokata_RuNeLess

Chieftain
Joined
Sep 17, 2015
Messages
39
Location
USTC in Hefei, China
Suggest that I want to do such a thing:

A unit has a promotion, if it is airlifted, delete this promotion.

Events associated with it includes 'GameEvents.UnitSetXY' and 'Events.UnitMoveQueueChanged'. I do not know other events that may help.
In an airlift, unit changes its XY, but its move queue remains.
Since that 'GameEvents.UnitSetXY' is always been fired before 'Events.UnitMoveQueueChanged', what should I do to judge if the unit is airlifted?
 
If you mean the Great Admiral teleport ability, you'll need to use a combination of CanStartMission and UnitSetXY
 
If you mean the Great Admiral teleport ability, you'll need to use a combination of CanStartMission and UnitSetXY

Well, I'm not sure what can CanStartMission do... Isn't it that after one teleported, it can do nothing because of having no movement? (but UnitMoveQueueChanged doesn't respond while teleporting...)

However, it seems that ParadropAt doesn't work neither in BNW nor DLL-VMC v72. I wonder where the problem is:

Code:
function LegionGroupOnParadroped(playerID, unitID, fromX, fromY, toX, toY)
	print ("Find Unit Paradroped!")
end
GameEvents.ParadropAt.Add(LegionGroupOnParadroped)
A simple example, but get nothing on Firetuner.
 
Back
Top Bottom