1. In some .bos files there is a set/get UNKNOWN_UNIT_VALUE() function what does "UNKNOWN_UNIT_VALUE()" mean?
2. Lets say I select 100 units and then press a button -> AllowCommand is triggert. Is the AllowCommand function triggert once or 100 times?
So if my AllowCommand function looks like this:
Code: Select all
function gadget:AllowCommand(u, ud, team, cmd, param, opt)
if cmd == CMD_MYCOMMAND then
here comes a function which adds u (unitID) to a table
command_triggered=true --set a variable to true
end
return true
end