Delete temp debug codes in 'sapwnListener.lua'
This commit is contained in:
@@ -23,39 +23,4 @@ do
|
|||||||
local typeName = base:getTypeName() or 'None'
|
local typeName = base:getTypeName() or 'None'
|
||||||
trigger.action.outText(typeName,10)
|
trigger.action.outText(typeName,10)
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
local unit = Unit.getByName('Test-1-1')
|
|
||||||
if unit then
|
|
||||||
if unit:isActive() then
|
|
||||||
trigger.action.outText('Uncontroll is Active.',5)
|
|
||||||
else
|
|
||||||
trigger.action.outText('Uncontroll is not Active.',5)
|
|
||||||
local controller = unit:getGroup():getController()
|
|
||||||
local Start = {
|
|
||||||
id = 'Start',
|
|
||||||
params = {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
controller:setCommand(Start)
|
|
||||||
if unit:isActive() then
|
|
||||||
trigger.action.outText('Start command can Active uncontrolled group.',5)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
if not unit then
|
|
||||||
trigger.action.outText('no unit.',5)
|
|
||||||
end
|
|
||||||
|
|
||||||
local unit = Unit.getByName('Test-1-1')
|
|
||||||
if not unit then
|
|
||||||
trigger.action.outText('no unit.',5)
|
|
||||||
end
|
|
||||||
|
|
||||||
if unit then
|
|
||||||
local desc = unit:getDesc()
|
|
||||||
local msg = mist.utils.tableShow(desc)
|
|
||||||
trigger.action.outText(msg,5)
|
|
||||||
end
|
end
|
||||||
Reference in New Issue
Block a user