Error running OnScriptBitSet script ... bad argument #1 to `insert' (table expected, got nil)
First time I get this kind of error idk what is wrong
Also X does not match any Y category, where X is a unit and Y a category like Air, Naval...
Forged Alliance Forever Forums
OnScriptBitSet = function(self, bit)
if bit == 0 then -- Shield toggle
[...]
elseif bit == 1 then -- Weapon toggle
[...]
end
end,
BuildIconSortPriority = 25,
LOG('*FORMATION DEBUG: Unit ' .. u:GetUnitId() .. ' does not match any ' .. type .. ' categories.')
BluePrint.Categories = RemoveItemFromArray('BUILTBYCOMMANDER',BluePrint.Categories)
function RemoveItemFromArray(REMOVEME,ARRAY)
zold = 1
while ARRAY[zold] do
if ARRAY[zold] == REMOVEME then
table.remove(ARRAY, zold)
else
zold = zold + 1
end
end
return ARRAY
end
Users browsing this forum: No registered users and 1 guest