function gadget:UnitCreated(unitID, unitDefID, unitTeam, builderID) if LOCATOR[unitDefID] then Spring.InsertUnitCmdDesc(unitID, 500, locateCmd) locatorList [unitID] = true ... ...