Code: Select all
-- put landed units in this table
local LandedUnits = {}
function gadget:AllowCommand(unitID, ...) do
if LandedUnits[unitID] then
return false -- ignore the command
else
return true -- do the command
end
end
Moderator: Moderators
Code: Select all
-- put landed units in this table
local LandedUnits = {}
function gadget:AllowCommand(unitID, ...) do
if LandedUnits[unitID] then
return false -- ignore the command
else
return true -- do the command
end
end
GetUnitMoveTypeData returns a table. One entry is "aircraftState" with values like e.g. "landed", "flying".bobthedinosaur wrote:1) how do you propose to get landed units?